Dear R users
(B
(BI have a data frame containing character and numeric variables, whose
(Bname is seishin. When I tried to assign NA to "" in the data frame, R, 2.00
(Bshowed an error message, such as
(B
(B> seishin[seishin==""]<-NA
(BError: NAs are not allowed in subscripted assignments
(B
(BThis did not happen under R 1.9.0.
(B
(BMore oddly,
(BThe following commands work just fine under R 2.0.0
(B> a<-1:10
(B> b<-letters[1:10]
(B> b[3]<-""
(B> c<-data.frame(cbind(a,b))
(B> c[c==""]<-NA
(B
(BWhy is this so?
(BAnd how can I assign NA to "" data.framewise in seishin data.frame?
(BPlease help.
(B
(BSincerely
(B--------------------------------
(BHiroto Miyoshi
(B[EMAIL PROTECTED]
(B
(B______________________________________________
([EMAIL PROTECTED] mailing list
(Bhttps://stat.ethz.ch/mailman/listinfo/r-help
(BPLEASE do read the posting guide! http://www.R-project.org/posting-guide.html