11. Which of the following function gives the day of the week?
12. Point out the wrong statement?
13. What will be the output of the following R code?
> x <- as.POSIXct("2012-10-25 01:00:00")
> y <- as.POSIXct("2012-10-25 06:00:00", tz = "GMT")
> y-x
> x <- as.POSIXct("2012-10-25 01:00:00")
> y <- as.POSIXct("2012-10-25 06:00:00", tz = "GMT")
> y-x14. 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]]15. What will be the output of the following R code?
> datestring <- c("January 10, 2012 10:40", "December 9, 2011 9:10")
> x <- strptime(datestring, "%B %d, %Y %H:%M")
> x
> datestring <- c("January 10, 2012 10:40", "December 9, 2011 9:10")
> x <- strptime(datestring, "%B %d, %Y %H:%M")
> x16. We can dump() R objects to a file by passing . . . . . . . .
17. What will be the output of the following R code?
> x <- 1:4
> y <- 6:9
> x/y
> x <- 1:4
> y <- 6:9
> x/y18. Point out the correct statement?
19. The dplyr package can be installed from CRAN using . . . . . . . .
20. Which of the following argument denotes if the file has a header line?
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.
