Home / CSE MCQs / R Programming MCQs :: Discussion

Discussion :: R Programming MCQs

  1. Which of the following statement changes column name to h and f ?
  2. A.
    colnames(m) <- c("h", "f")
    B.
    columnnames(m) <- c("h", "f")
    C.
    rownames(m) <- c("h", "f")
    D.
    None of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

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


Be The First To Comment