adplus-dvertising
frame-decoration

Question

Which of the following statement would print “0” “1” “2” “3” “4” “5” “6” for the following R code?

a.

as.character(x)

b.

as.logical(x)

c.

as.numeric(x)

d.

as.num(y)

Posted under R Programming

Answer: (a).as.character(x)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following statement would print “0” “1” “2” “3” “4” “5” “6” for the following R code?

Similar Questions

Discover Related MCQs

Q. Point out the correct statement?

Q. Point out the correct statement?

Q. All columns in a matrix must have the same mode and the _________ length.

Q. ___________ provides optional labels with the columns and rows.

Q. ________ are similar to matrices but can have more than two dimensions.

Q. Which is more general than a matrix, in that different columns can have different modes?

Q. An ordered collection of objects or components are called ________

Q. The ________ stores the nominal values as a vector of integers in the range of 1 to unique values in the nominal variable.

Q. An ordered factor is used to represent an __________

Q. On what basis of a variable, OS allocates memory and decides what can be stored in the reserved memory?

Q. The data type of the R-object becomes the data type of the ________

Q. Which function is used to combine the elements into a vector?

Q. A __________ is an R-object which can contain many different types of elements inside it.

Q. A _________ is a two-dimensional rectangular data set.

Q. Which function takes a dim attribute which creates the required number of dimensions?

Q. Factors are the r-objects which are created using a _________

Q. Factors are created using the _______ function.

Q. By what function we can create data frames?

Q. vectors can be one of two types namely atomic vectors and _______

Q. Lists can be coerced with which function?