I am trying to read a single column of a CSV file to R as quickly as possible. I am hoping to cut down on standard methods in terms of the time it take
CSV
R
There is a speed comparison of methods to read large CSV files in this blog. fread is the fastest by an order of magnitude.
As mentioned in the comments above, you can use the select parameter to select which columns to read - so:
fread("main.csv",sep = ",", select = c("f1") )
will work