1.

readlines is used for ____________(a) working on data(b) reading files(c) reading lines in files(d) not existThis question was posed to me in final exam.My question is based upon Textual Data Formats in portion R – Data Storage, Formats, Objects and Operations of R Programming

Answer»

The correct choice is (b) READING FILES

Explanation: ReadLines is USED for reading lines of a text FILE. you can LOAD the data into R using the readRDS() function. Text files can be read line by line using the readLines() function. This function is useful for reading text files that may be unstructured or contain non-standard data.



Discussion

No Comment Found

Related InterviewSolutions