Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which of the following statement would read file “foo.txt”?

a) data < - read.table(“foo.txt”)
b) read.data < - read.table(“foo.txt”)
c) data < - read.data(“foo.txt”)
d) data < - data(“foo.txt”)

Answer: a
Explanation: R will automatically skip lines that begin with a #.

Join The Discussion