adplus-dvertising
frame-decoration

Question

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

Posted under R Programming

Answer: (b).colnames()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the function to set column names for a matrix?

Similar Questions

Discover Related MCQs

Q. What is the function used to test objects (returns a logical operator) if they are NaN?

Q. What is the function used to test objects (returns a logical operator) if they are NA?

Q. Matrices can be created by row-binding with the help of the following function.

Q. The dimension attribute is itself an integer vector of length _______

Q. How do you create an integer suppose 5 in R?

Q. Which one of the following is not a basic datatype?

Q. How can we define ‘infinity’ in R language?

Q. What is NaN called?

Q. How can we define ‘undefined value’ in R language?

Q. A list is represented as a vector but can contain objects of ___________

Q. In R language, a vector is defined that it can only contain objects of the ________

Q. Which of the following operator is used to create integer sequences?

Q. Which of the following is used for Statistical analysis in R language?

Q. Advanced users can write ___ code to manipulate R objects directly.

Q. What is the output of getOption(“defaultPackages”) in R studio?

Q. Which of the following is “Recommended” package in R?

Q. Which of the following is a base package for R language?

Q. Point out the wrong statement?

Q. Which Package contains most fundamental functions to run R?

Q. R functionality is divided into a number of ________