[R] Replecing empty values with a letter (continuation)

From: Judith Flores <juryef_at_yahoo.com>
Date: Wed, 23 Apr 2008 16:19:38 -0700 (PDT)


Sorry, I hit the send botton by accident. Here is my code so far:

dat<-read.csv('myfile.csv', na.strings="") dat[is.na(dat]<-'N'

   But it doesn't replace the <NA> for the letter 'N'.

     I am using R v 2/7/0, running it under Windows XP.

Thank you,

Judith



Be a better friend, newshound, and

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 23 Apr 2008 - 23:22:20 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 Apr 2008 - 02:30:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive