1

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

Correct Answer: data <- read.csv("foo.txt")

Make the most of this question

This page focuses on one R Programming MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

R Programming MCQs MCQ: Which of the following code opens a connection to the file foo.txt, reads from it, and closes the connection when its done? | Extra Education