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
This question was posed to me in a national level competition.
This intriguing question originated from Overview of R in division History, Overview and Getting Started of R Programming