a) data < - read.table(“foo.txt”) b) read.data < - read.table(“foo.txt”) c) data < - read.data(“foo.txt”) d) data < ...
View QuestionPoint out the correct statement?
a) unserialize is used for converting an R object into a binary format for outputting to a connection
View QuestionWhich of the following argument denotes if the file has a header line?
a) header b) sep c) file d) footer Answer: a Explanation: sep is a string indicating how ...
View Question________ is used for outputting a textual representation of an R object.
a) dput b) dump c) dget d) dset Answer: a Explanation: dump is used for dumping a ...
View QuestionPoint out the wrong statement?
a) write.table is used for for writing tabular data to text files (i.e. CSV) or connections b) writeLines ...
View QuestionWhich of the following is used for reading in saved workspaces?
a) unserialize b) load c) get d) set Answer: b Explanation: unserialize is used for reading single ...
View QuestionWhich of the following is used for reading tabular data?
a) read.csv b) dget c) readLines d) writeline Answer: a Explanation: read.table can also be used ...
View QuestionWhich of the following statement changes column name to h and f?
a) colnames(m) < - c(“h”, “f”) b) columnnames(m) < - c(“h”, “f”) c) rownames(m) < - c(“h”, “f”)
View Question
What will be the output of the following R code?
> x < – 1:3
> names(x)
What will be the output of the following R code? > x < - 1:3 > names(x) a) ...
View QuestionWhich of the following is invalid assignment?
a) > x < - list("Los Angeles" = 1, Boston = 2, London = 3) b) > ...
View Question