Re: [R] Display of NAs in character columns of a data frame under fix() or edit().

2010-11-02 Thread Rolf Turner
Thanks Peter. Makes sense. But I would like to point out that it *is* possible to distinguish between ``NA'' meaning North America and ``NA'' meaning ``missing value'' in *ordinary* printing of character vectors. E.g. > x <- c("Europe","Africa","NA",NA,"SA","Antarctica") > x [1] "Europe" "

Re: [R] Display of NAs in character columns of a data frame under fix() or edit().

2010-11-02 Thread Peter Dalgaard
On 11/02/2010 09:45 PM, Rolf Turner wrote: > > Example: > > xxx <- data.frame(x=1:26,y=letters) > xxx$x[c(2,4,6,8)] <- NA > xxx$y[c(1,3,5,7)] <- NA > > yyy <- edit(yyy) > > The missing values in xxx$y appear as blanks in the spreadsheet window that > appears, whereas the