a) seq() b) sequence() c) order() d) orderasc() Answer: a Explanation: R has a number of facilities for generating commonly ...
View Question_______ function returns a vector of the same size as x with the elements arranged in increasing order.
a) sort() b) orderasc() c) orderby() d) sequence() Answer: a Explanation: There are other more flexible sorting ...
View QuestionWhich of the following code constructs vector of length 11?
a) > v <- 3*x + y + 1 b) > v <- 3*x + y ...
View Question
What will be the output of the following R code?
> sqrt(-17)
What will be the output of the following R code? > sqrt(-17) a) -4.02 b) 4.02
View QuestionWhich of the following is invalid assignment?
a) > c(10.4, 5.6, 3.1, 6.4, 21.7) -> x b) > assign("x", c(10.4, 5.6, 3.1, 6.4, 21.7))
View QuestionPoint out the correct statement?
a) The usual operator, <-, can be thought of as a syntactic shortcut to expression operation b) Assignment ...
View Question
What will be the output of the following R code?
> x <- 0:6
> as.logical(x)
What will be the output of the following R code? > x <- 0:6 > as.logical(x) a) ...
View Question
What will be the output of the following R code?
> x <- 6
> class(x)
What will be the output of the following R code? > x <- 6 > class(x) a) ...
View QuestionPoint out the correct statement?
a) Use explicit TRUE and FALSE values when indicating logical values b) rm command is used ...
View QuestionWhich of the following statement is invalid?
a) x <- c(1+0i, 2+4i) b) x <- c(TRUE, FALSE) c) x <- c(T, F) d) None of the mentioned
View Question