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 opens connection to gz-compressed text file?

a) con < - gzfiles(“words.gz”)
b) con < - gzfile(“words.gz”)
c) con < - gzfile2(“words.gz”)
d) con < - gzfiles2(“words.gz”)

Answer: b
Explanation: For more structured text data like CSV files or tab-delimited files, there are other functions like read.csv() or read.table().

Join The Discussion