a) row.names() b) colnames() c) col.names() d) column name cannot be set for a data frame Answer: a Explanation: row.names() ...
View QuestionHow many atomic vector types does R have?
a) 5 b) 6 c) 8 d) 10 Answer: b Explanation: R language has 6 atomic data ...
View Question
What are the typeof(x) and mode(x) in the following R syntax?
x<-1:3
What are the typeof(x) and mode(x) in the following R syntax? x<-1:3 a) ...
View Question
What is the mode of b in the following R code?
b <- c(TRUE, TRUE, 1)
What is the mode of b in the following R code? b <- ...
View Question
What is the length of b?
b <- 2:7
What is the length of b? b <- 2:7 a) 4 b) 5 c) 6 d) 0
View Question
What is the mode of ‘a’ in the following R code?
a <- c(1,” a”, FALSE)
What is the mode of ‘a’ in the following R code? a <- ...
View QuestionR language has superficial similarity with _________
a) C b) Python c) MATLAB d) SAS Answer: a Explanation: The language syntax has a superficial similarity with ...
View QuestionR language is a dialect of which of the following languages?
a) S b) C c) MATLAB d) SAS Answer: a Explanation: The R language is a dialect of S ...
View Question
What will be the output of the following R code?
x <- c(3, 7, NA, 4, 7)
y <- c(5, NA, 1, 2, 2)
x + y
What will be the output of the following R code? x <- c(3, 7, ...
View QuestionWhat is output of getOption(“defaultPackages”) in R studio?
a) Installs a new package b) Shows default packages in R c) Error d) Nothing will print Answer: b Explanation: There ...
View Question