Discussion :: R Programming MCQs
- 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.
None of the mentioned
|
Answer : Option A
Explanation :
Column names and row names can be set separately using the colnames() and rownames() functions.
Be The First To Comment