1.

Which of the following statement can read csv files?(a) read.table(filename,header=TRUE,sep=’,’)(b) read.csv(filename,header=TRUE,sep=’,’)(c) read.tab(filename,header=TRUE,sep=’,’)(d) read.tab(filename,header=False,sep=’,’)The question was asked in an interview.The doubt is from Commands in division Commands, Packages, Visualizing Data and Linear Regression of R Programming

Answer»

Correct option is (a) read.table(filename,header=TRUE,sep=’,’)

Best EXPLANATION: Each ROW of the table APPEARS as one LINE of the file.



Discussion

No Comment Found

Related InterviewSolutions