Which of the following is example of vectorized operation as far as subtraction is concerned? > x < ...
View Question
What will be the output of the following R code?
> x < – c(1, 2, NA, 4, NA, 5)
> bad < – is.na(x)
> print(bad)
What will be the output of the following R code? > x < - c(1, 2, NA, 4, ...
View Question
What will be the output of the following R code?
> x < – list(aardvark = 1:5)
> x[[“a”, exact = FALSE]]
What will be the output of the following R code? > x < - list(aardvark = 1:5) > ...
View Question
Which of the following code extracts 1st element of the 2nd element?
> x < – list(a = list(10, 12, 14), b = c(3.14, 2.81))
Which of the following code extracts 1st element of the 2nd element? > x < - list(a ...
View Question
What will be the output of the following R code?
> x < – list(aardvark = 1:5)
> x$a
What will be the output of the following R code? > x < - list(aardvark = 1:5) > ...
View Question
What will be the output of the following R code?
> x < – list(a = list(10, 12, 14), b = c(3.14, 2.81))
> x[[c(1, 3)]]
What will be the output of the following R code? > x < - list(a = list(10, 12, ...
View Question
What will be the output of the following R code?
> x < – list(foo = 1:4, bar = 0.6, baz = “hello”)
> name <- “foo”
> x[[name]]
What will be the output of the following R code? > x < - list(foo = 1:4, bar ...
View Question
What will be the output of the following R code?
> x < – list(foo = 1:4, bar = 0.6, baz = “hello”)
> name <- “foo”
> x$name
What will be the output of the following R code? > x < - list(foo = 1:4, bar ...
View QuestionPoint out the correct statement?
a) You can also use the $ operator to extract elements by name b) $ operator can be ...
View Question
Which of the following extracts first element from the following R list?
> x < – list(foo = 1:4, bar = 0.6)
Which of the following extracts first element from the following R list? > x < - list(foo ...
View Question