I have a zip archive with several csv files in it. I would like to use fread to import selected csv files into R
.
With read.csv
I can get the data as follows without extracting the archive.
con <- unz("myarchive.zip", "file2.csv")
file2 <- read.csv(con, sep = ",", stringsAsFactors = FALSE)
on.exit(close(con))
How to use data.table::fread
to import the the data in the csv file into R
from the archive without extracting it?