Question
> x <- c("a", "b", "c")
> as.logical(x)
a.
a b c
b.
NA NA NA
c.
0 1 2
d.
6 8 9
Posted under R Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will be the output of the following R code?
Similar Questions
Discover Related MCQs
Q. Point out the correct statement?
View solution
Q. All columns in a matrix must have the same mode and the _________ length.
View solution
Q. ___________ provides optional labels with the columns and rows.
View solution
Q. ________ are similar to matrices but can have more than two dimensions.
View solution
Q. Which is more general than a matrix, in that different columns can have different modes?
View solution
Q. An ordered collection of objects or components are called ________
View solution
Q. The ________ stores the nominal values as a vector of integers in the range of 1 to unique values in the nominal variable.
View solution
Q. An ordered factor is used to represent an __________
View solution
Q. On what basis of a variable, OS allocates memory and decides what can be stored in the reserved memory?
View solution
Q. The data type of the R-object becomes the data type of the ________
View solution
Q. Which function is used to combine the elements into a vector?
View solution
Q. A __________ is an R-object which can contain many different types of elements inside it.
View solution
Q. A _________ is a two-dimensional rectangular data set.
View solution
Q. Which function takes a dim attribute which creates the required number of dimensions?
View solution
Q. Factors are the r-objects which are created using a _________
View solution
Q. Factors are created using the _______ function.
View solution
Q. By what function we can create data frames?
View solution
Q. vectors can be one of two types namely atomic vectors and _______
View solution
Q. Lists can be coerced with which function?
View solution
Q. A data frame is a special type of list where every element of the list has ______ length.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond R Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!