Google News
logo
R - Quiz(MCQ)
Which of the following opens connection to gz-compressed text file?
A)
con <- gzfiles(“words.gz”)
B)
con <- gzfile2(“words.gz”)
C)
con <- gzfile(“words.gz”)
D)
con <- gzfiles2(“words.gz”)

Correct Answer :   con <- gzfile(“words.gz”)


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

Advertisement