Re: [R] read.csv converts "NA" to missing values

2012-02-27 Thread peter dalgaard
On Feb 27, 2012, at 14:15 , nikhil abhyankar wrote: > Hello, > > I have a CSV file with region codes listed in a column. E.g. 'AS' for Asia, > 'AU' for Australia and 'NA' North America. > > However, the data frame created using read.csv shows where the string > variable should have had the val

Re: [R] read.csv converts "NA" to missing values

2012-02-27 Thread R. Michael Weylandt
I believe read.csv(..., na.strings = "") will do it. Michael On Mon, Feb 27, 2012 at 8:15 AM, nikhil abhyankar wrote: > Hello, > > I have a CSV file with region codes listed in a column. E.g. 'AS' for Asia, > 'AU' for Australia and 'NA' North America. > > However, the data frame created using re