[R] <NA> to NA
Bert Gunter
gunter.berton at gene.com
Mon Mar 31 20:37:48 CEST 2014
> x <- factor(c("whoops","NA",NA,"B"))
> x
[1] whoops NA <NA> B
Levels: B NA whoops
> is.na(x)
[1] FALSE FALSE TRUE FALSE
If this doesn't explain it for you, then read about missing values and
factors in "An Introduction to R."
-- Bert
Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374
"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
H. Gilbert Welch
On Mon, Mar 31, 2014 at 11:29 AM, eliza botto <eliza_botto at hotmail.com> wrote:
> Dear useRs,
> Sorry for such a ridiculous question but i really need to know that what is the difference between <NA> and NA and how to convert <NA> to NA.
> Thankyou very much in advance
> Eliza
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list