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]]
On Mar 31, 2014, at 1:29 PM, eliza botto eliza_bo...@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
NA
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
On Fri, Apr 4, 2008 at 11:00 AM, Muenchen, Robert A (Bob)
[EMAIL PROTECTED] wrote:
Dear R-Helpers,
Why does R show character missing values in vectors as NA and when
stored in a data frame as NA? I've searched but did not find an
explanation.
It's because that character vector is
Muenchen, Robert A (Bob) wrote:
Dear R-Helpers,
Why does R show character missing values in vectors as NA and when
stored in a data frame as NA? I've searched but did not find an
explanation.
Thanks,
Bob
gender - c(f,f,f,NA,m,m,m,m)
gender
[1] f f f NA m m m m #here it
Dear R-Helpers,
Why does R show character missing values in vectors as NA and when
stored in a data frame as NA? I've searched but did not find an
explanation.
Thanks,
Bob
gender - c(f,f,f,NA,m,m,m,m)
gender
[1] f f f NA m m m m #here it lacks brackets.
q1 - c(1,2,2,3,4,5,5,4)
q1
[1] 1
Dalgaard [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2008 12:18 PM
To: Muenchen, Robert A (Bob)
Cc: [EMAIL PROTECTED]
Subject: Re: [R] NA vs. NA
Muenchen, Robert A (Bob) wrote:
Dear R-Helpers,
Why does R show character missing values in vectors as NA and when
stored in a data frame
7 matches
Mail list logo