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

Judith Flores juryef at yahoo.com
Thu Apr 24 01:19:38 CEST 2008


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



More information about the R-help mailing list