Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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

Answer: a
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.

Join The Discussion