1.

Which of the following statement read a tab or space delimited file?(a) read.table(filename,header=TRUE)(b) read.CSV(filename,header=TRUE)(c) read.table(filename,header=FALSE)(d) read.tableall(filename,header=TRUE)This question was posed to me in quiz.This intriguing question originated from Commands topic in division Commands, Packages, Visualizing Data and Linear Regression of R Programming

Answer»

Right ANSWER is (a) read.table(filename,header=TRUE)

The EXPLANATION is: read.csv and read.csv2 are IDENTICAL to read.table except for the defaults.



Discussion

No Comment Found

Related InterviewSolutions