1. readlines is used for . . . . . . . .
2. Which of the following R code extracts the second column for the following matrix?
> x <- matrix(1:6, 2, 3)
> x <- matrix(1:6, 2, 3)
3. What will be the output of the following R code?
> x <- matrix(1:6, 2, 3)
> x[1, , drop = FALSE]
> x <- matrix(1:6, 2, 3)
> x[1, , drop = FALSE]
4. The . . . . . . . . operator allows you to string operations in a left-to-right fashion.
5. Point out the correct statement?
6. dplyr can be integrated with the . . . . . . . . package for large fast tables.
7. What will be the output of the following R code?
> x <- list(foo = 1:4, bar = 0.6, baz = "hello")
> name <- "foo"
> x$name
> x <- list(foo = 1:4, bar = 0.6, baz = "hello")
> name <- "foo"
> x$name
8. Point out the wrong statement?
9. . . . . . . . . extract a subset of rows from a dataframe based on logical conditions.
10. Which of the following statement would read file "foo.txt"?
Read More Section(Data Structures in R Programming)
Each Section contains maximum 100 MCQs question on Data Structures in R Programming. To get more questions visit other sections.