Skip to content
Prev 312558 / 398506 Next

read.csv.sql() to select from a large csv file

On Fri, Nov 23, 2012 at 5:05 PM, Juliane Struve
<juliane_struve at yahoo.co.uk> wrote:
That sets i to the length of Names_EastCoast and then runs the query only once.

I think you want:

for(nam in Names_EastCoast) {
   Data <- fn$read.csv.sql("filename",
       sql = 'select * from file where ID = "$nam" ')
   # ... process Data ...
}
Message-ID: <CAP01uRkSfheNa0gF1JAXT5P__mOasiibjC-Ox+GU7ptLw7faWQ@mail.gmail.com>
In-Reply-To: <1353708301.73361.YahooMailNeo@web171701.mail.ir2.yahoo.com>