I have been trying to read a very big (compared to computer's memory) data set and I thought it would be easier to use sqldf to import only selected columns. However, my code only imports the file's columns names and none of the data.
library(sqldf)
ka <- read.csv.sql("Filename.csv",header=TRUE,sep="\t",
sql="SELECT Business,Product FROM file")
ka then gives me Business, Product column names, but not the data below them.
I also get the message <0 rows> (or 0-length row.names)
What is more weird, is that the above function works with a sample on my personal laptop, but not with the employer's data.
Would anyone know what could be the reason?