1.

Which of the following code opens a connection to the file foo.txt, reads from it, and closes the connection when its done?(a) data

Answer» RIGHT option is (a) data <- read.csv(“foo.txt”)

The best explanation: Connections MUST be OPENED, then the are read from or written to, and then they are closed.


Discussion

No Comment Found

Related InterviewSolutions