Skip to content
Prev 155047 / 398506 Next

adding NA to "subset"

Sherri Heck wrote:
Use is.na():

x <- subset(spdco2, spdco2[,2] >= 4.7 | is.na(spdco2[,2]))

Make sure that the inclusion or exclusion of the row can be computed:  
TRUE | NA is TRUE, but FALSE | NA is NA.

Duncan Murdoch

Duncan Murdoch