Re: [R] R (3.1.2) sub-setting code related to "NA" on Windows not working!

2015-04-13 Thread John Kane
] FALSE> AirQuality[4,1][1] 1868 Levels: 1 > 10 108 11 110 115 118 12 122 13 135 ... NA> John Kane Kingston ON Canada > -Original Message- > From: sar...@greenhorizon.in > Sent: Mon, 13 Apr 2015 06:33:19 -0700 > To: r-help@r-project.org > Subject: [

Re: [R] R (3.1.2) sub-setting code related to "NA" on Windows not working!

2015-04-13 Thread peter dalgaard
This is almost unreadable due to HTML posting (do read the posting guide!). However, it would seem that you somehow got your data converted to factors of which one level is NA. This may be surprising, but the difference is like that of > factor(c("NA", 18)) [1] NA 18 Levels: 18 NA > factor(c("

[R] R (3.1.2) sub-setting code related to "NA" on Windows not working!

2015-04-13 Thread Sarada Samantaray
My AirQuality[4,1] is equal to 18 and AirQuality[5,1] is equal to NA. When I type the following > is.na(AirQuality[5,1])[1] FALSE> AirQuality[5,1][1] NA68 Levels: 1 10 108 11 > 110 115 118 12 122 13 135 ... NA> is.na(AirQuality[4,1])[1] FALSE> > AirQuality[4,1][1] 1868 Levels: 1 10 108 11 110 115