Yes, of course: > x <- c(TRUE, NA) > any(x) [1] TRUE > sum(x) > 0 [1] NA
Andy > From: Peter Dalgaard > > "Liaw, Andy" <[EMAIL PROTECTED]> writes: > > > Is there anything wrong with sum(v) > 0? > > Yes, there is an any()-thing.... ;-) > > (And NA handling differs too.) > > -- > O__ ---- Peter Dalgaard Blegdamsvej 3 > c/ /'_ --- Dept. of Biostatistics 2200 Cph. N > (*) \(*) -- University of Copenhagen Denmark Ph: > (+45) 35327918 > ~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: > (+45) 35327907 > > ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
