[R] Blanking out specific cells in a data frame

Stefan Grosse singularitaet at gmx.net
Wed May 19 19:53:11 CEST 2010


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