An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090319/207de96b/attachment-0002.pl>
which.na
3 messages · Santosh, Charles Annis, P.E., Martin Maechler
?is.na x <- c(NA, 3, 4, 5, NA) which(is.na(x))
[1] 1 5 Charles Annis, P.E. Charles.Annis at StatisticalEngineering.com phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Santosh Sent: Thursday, March 19, 2009 9:37 PM To: r-help at r-project.org Subject: [R] which.na Hi R- users I was wondering if there is any function equivalent to which.na used in S+? Thanks much in advance! Regards, Santosh ______________________________________________ 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.
"CAPE" == Charles Annis, P E <Charles.Annis at statisticalengineering.com>
on Thu, 19 Mar 2009 22:46:10 -0400 writes:
>> ?is.na
>> x <- c(NA, 3, 4, 5, NA)
>> which(is.na(x))
CAPE> [1] 1 5
well, yes, of course,
but that's not as efficient for large x with only few NAs.
But this now has *REALLY* changed into a topic belonging to
R-devel, not R-help
~~~~~~~ --> hence I've diverted the thread to there.
Martin Maechler, ETH Zurich
CAPE> Charles Annis, P.E.
CAPE> Charles.Annis at StatisticalEngineering.com
CAPE> http://www.StatisticalEngineering.com
CAPE> -----Original Message-----
CAPE> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
CAPE> Behalf Of Santosh
CAPE> Sent: Thursday, March 19, 2009 9:37 PM
CAPE> To: r-help at r-project.org
CAPE> Subject: [R] which.na
CAPE> Hi R- users
CAPE> I was wondering if there is any function equivalent to which.na used in S+?
CAPE> Thanks much in advance!
CAPE> Regards,
CAPE> Santosh
CAPE> [[alternative HTML version deleted]]
CAPE> ______________________________________________
CAPE> R-help at r-project.org mailing list
CAPE> https://stat.ethz.ch/mailman/listinfo/r-help
CAPE> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
CAPE> and provide commented, minimal, self-contained, reproducible code.
CAPE> ______________________________________________
CAPE> R-help at r-project.org mailing list
CAPE> https://stat.ethz.ch/mailman/listinfo/r-help
CAPE> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
CAPE> and provide commented, minimal, self-contained, reproducible code.