selecting every Nth column in using SQLDF or read.csv.sql
问题 I am rather new to using SQL statements, and am having a little trouble using them to select the desired columns from a large table and pulling them into R. I want to take a csv file and read selected columns into r, in particular, every 9th and 10th column. In R, something like: read.csv.sql("myfile.csv", sql(select * from file [EVERY 9th and 10th COLUMN]) My trawl of the internet suggests that selecting every nth row could be done with an SQL statement using MOD something like this (please