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.

Which of the following statement changes column name to h and f?

a) colnames(m) < - c(“h”, “f”)
b) columnnames(m) < - c(“h”, “f”)
c) rownames(m) < - c(“h”, “f”)
d) rownames(m) < - c(“f”, “f”)

Answer: a
Explanation: Column names and row names can be set separately using the colnames() and rownames() functions.

Join The Discussion