in Education by
What is the function to set row names for a data frame? (a) row.names() (b) colnames() (c) col.names() (d) column name cannot be set for a data frame I had been asked this question in final exam. My question is from Basics topic in section History, Overview and Getting Started of R Programming Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
The correct choice is (a) row.names() Explanation: row.names() is the function to set row names for a data frame. Data frames have a special attribute called row.names, which indicate information about each row of the data frame.

Related questions

0 votes
    What is the function to set column names for a matrix? (a) names() (b) colnames() (c) col.names() ... Getting Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Matrices can be created by row-binding with the help of the following function. (a) rjoin() (b) rbind() ... Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Which of the following can be used to display the names of (most of) the objects which are currently stored ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Dataframes can be converted into a matrix by calling the following function data ______ (a) matr() (b) matrix ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Which of the following lists names of variables in a data.frame? (a) quantile() (b) names() (c) ... Linear Regression of R Programming Select the correct answer from above options...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    __________ function is used to watch for all available packages in library. (a) lib() (b) fun.lib() (c ... Started of R Programming Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    What is the function used to test objects (returns a logical operator) if they are NA? (a) is.na() ... Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Which function is used to automatically vectorize? (a) lapply() (b) kapply() (c) mapply() (d) happly( ... Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    If the code is stored in the external file, which of the following function is used to call them to a ... Started of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    In the expression x...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    What is the function used to test objects (returns a logical operator) if they are NaN? (a) as.nan() ... Started of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    The R-help and _____ mailing lists have been highly active for over a decade now. (a) R-mail (b) R ... Getting Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Which of the following is default prompt for UNIX environment? (a) > (b) >> (c) < (d)...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    In 2004, ________ purchased the S language from Lucent for $2 million. (a) Insightful (b) Amazon (c) IBM ... Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    In ________ Insightful purchased the S language from Lucent for $2 million. (a) 2002 (b) 2003 (c) 2004 (d ... Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
...