Que: What is the function to set column names for a matrix?

a. names()
b. colnames()
c. col.names()
d. column name cannot be set for a matrix
Answer: colnames()

Leave a Comment