71. Which of the following code would read 100 rows?
72. Point out the correct statement?
73. Which of the following code opens a connection to the file foo.txt, reads from it, and closes the connection when its done?
74. Point out the wrong statement?
75. What will be the output of the following R code?
> x <- c(1, 2, NA, 4, NA, 5)
> bad <- is.na(x)
> print(bad)
> x <- c(1, 2, NA, 4, NA, 5)
> bad <- is.na(x)
> print(bad)
76. Point out the correct statement?
77. Which of the following statement will load the objects to the file named "mydata.RData"?
78. . . . . . . . . opens a connection to a file compressed with gzip.
79. What will be the output of the following R code?
> y <- data.frame(a = 1, b = "a")
> dput(y)
> y <- data.frame(a = 1, b = "a")
> dput(y)
80. Which of the following is example of vectorized operation as far as subtraction is concerned?
> x <- 1:4
> y <- 6:9
> x <- 1:4
> y <- 6:9
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.