Re: [Rd] NA handling in as.character applied to a list

2006-10-26 Thread Seth Falcon
Peter Dalgaard <[EMAIL PROTECTED]> writes: > Hmm... > >> as.character(v) > [1] NA "NA" "NA" > > This does look like a leftover from times when there was no character > NA in the language. It is the kind of thing you need to be very > careful about fixing though. (I have a couple of scars from > a

Re: [Rd] NA handling in as.character applied to a list

2006-10-25 Thread Peter Dalgaard
Seth Falcon <[EMAIL PROTECTED]> writes: > Hi all, > > In some circumstances, as.character applied to a list converts real > NA's into the string "NA". Propagation of NAs is something R does > very well and unless there are good reasons for losing the NA, it > would improve the consistency w.r.t.