Re: [R] managing data and removing lines

2010-04-16 Thread Joshua Wiley
Hello Tara, To answer your question, I believe the simpler way you are looking for is specifying the na.string argument in read.table(). Using na.string specifies characters (or numbers) as missing data. For instance... I saved the first five lines of your data in a tab delimitted text file cal

Re: [R] managing data and removing lines

2010-04-16 Thread Christopher W. Ryan
Tara-- Welcome to R! Your questions could be answered from a variety of angles. I'd start by asking, where did the n/a's come from--they were in your text file, I assume, to represent missing data? If so, when you imported your data from that text file into R, those n/a's were considered (ri

[R] managing data and removing lines

2010-04-16 Thread Tara Imlay
Hi, I am very new to R and I've been trying to work through the R book to gain a better idea of the code (which is also completely new to me). Initially I imputed my data from a text file and that seemed to work ok, but I'm trying to examine linear relationships between gdist and gair, gdist and