[R] Blanking out specific cells in a data frame
Sabatier, Jennifer F. (CDC/OID/NCHHSTP)
fvv9 at cdc.gov
Wed May 19 20:04:50 CEST 2010
SWEET!
That's EXACTLY what I need. Thanks!
I can now just use NAToUnknown to turn the NA into blanks.
Thanks a lot!
Jen
-----Original Message-----
From: Stefan Grosse [mailto:singularitaet at gmx.net]
Sent: Wednesday, May 19, 2010 1:53 PM
To: r-help at r-project.org; Sabatier, Jennifer F. (CDC/OID/NCHHSTP)
Subject: Re: [R] Blanking out specific cells in a data frame
Am 19.05.2010 19:36, schrieb Sabatier, Jennifer F. (CDC/OID/NCHHSTP):
> mydf<-data.frame(matrix(rnorm(102), ncol=6)
>
you mean something like:
mydf[2:length(mydf[,1]),6]<-NA
hth
Stefan
More information about the R-help
mailing list