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 code would read 100 rows?

a) initial < - read.table(“datatable.txt”, nrows = 100)
b) tabAll < - read.table(“datatable.txt”, colClasses = classes)
c) initial < - read.table(“datatable.txt”, nrows = 99)
d) initial < - read.table(“datatable.txt”, nrows = 101)

Answer: a
Explanation: You can use the Unix tool wc to calculate the number of lines in a file.

Join The Discussion