Which of the following R code extracts the second column for the following matrix? > x < ...
View Question
What will be the output of the following R code?
> x < – matrix(1:6, 2, 3)
> x[1, ].
What will be the output of the following R code? > x < - matrix(1:6, 2, 3) > ...
View Question
What will be the output of the following R code?
> x < – matrix(1:6, 2, 3)
> x[1, 2]
What will be the output of the following R code? > x < - matrix(1:6, 2, 3) > ...
View QuestionPoint out the wrong statement?
a) $ operator semantics are similar to that of [[ b) The [ operator always returns an object ...
View Question
What will be the output of the following R code?
> x < – c(“a”, “b”, “c”, “c”, “d”, “a”)
> x[c(1, 3, 4)]
What will be the output of the following R code? > x < - c("a", "b", "c", "c", ...
View Question
Which of the following extracts first four element from the following R vector?
> x < – c(“a”, “b”, “c”, “c”, “d”, “a”)
Which of the following extracts first four element from the following R vector? > x < - ...
View QuestionPoint out the correct statement?
a) There are three operators that can be used to extract subsets of R objects b) The [ ...
View Question
Which of the following extracts first element from the following R vector?
> x < – c(“a”, “b”, “c”, “c”, “d”, “a”)
Which of the following extracts first element from the following R vector? > x < - c("a", ...
View QuestionWhich of the following opens connection to gz-compressed text file?
a) con < - gzfiles(“words.gz”) b) con < - gzfile(“words.gz”) c) con < - gzfile2(“words.gz”) d) con < ...
View QuestionWhich of the following code opens a connection to the file foo.txt, reads from it, and closes the connection when its done?
a) data < - read.csv(“foo.txt”) b) data < - read.csvo(“foo.txt”) c) data < - readonly.csv(“foo.txt”) d) data < ...
View Question