Re: [R] Simple question about error on CSV import

2009-09-01 Thread esawdust
thank you all for the quick responses and helpful explanations. I'm just getting started with R, so I'll get tripped up by some of this until I get in the groove. Thanks again, Landon -- View this message in context: http://www.nabble.com/Simple-question-about-error-on-CSV-import-tp25242899p2

Re: [R] Simple question about error on CSV import

2009-09-01 Thread Levi Waldron
By default for read.table, comment.char = "#" so the first line was being treated as a comment line, and when you specified row.names="#", read.table couldn't find that column. On Tue, Sep 1, 2009 at 12:07 PM, esawdust wrote: > > > esawdust wrote: > > > > Here's the contents of a simple test2

Re: [R] Simple question about error on CSV import

2009-09-01 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of esawdust > Sent: Tuesday, September 01, 2009 8:53 AM > To: r-help@r-project.org > Subject: [R] Simple question about error on CSV import > > > &g

Re: [R] Simple question about error on CSV import

2009-09-01 Thread esawdust
esawdust wrote: > > Here's the contents of a simple test2.csv CSV file: > > #,Status,Project > 5842,New,Test > >> snortalerts = read.table( "/Users/lcox/Documents/test2.csv", header=TRUE, >> sep=",", row.names="#") > Error in data[[rowvar]] : attempt to select less than one element > > Land

[R] Simple question about error on CSV import

2009-09-01 Thread esawdust
I have a substantial CSV to import but can't seem to import even the simplest CSV. I'm running the latest stable REvolution R on OS X if that is pertinent. Here's the contents of a simple test2.csv CSV file: #,Status,Project 5842,New,Test > snortalerts = read.table( "/Users/lcox/Documents/t