From devoilp@dpi.qld.gov.au  Mon Apr  2 02:17:23 2001
From: devoilp@dpi.qld.gov.au (devoilp@dpi.qld.gov.au)
Date: Mon, 2 Apr 2001 03:17:23 +0200 (MET DST)
Subject: [Rd] na.omit() (PR#889)
Message-ID: <200104020117.DAA24223@pubhealth.ku.dk>

Full_Name: Peter deVoil
Version: 1.1
OS: i686-pc-linux-gnu
Submission from: (NULL) (203.25.1.208)


Hi,

>  zz <- c(3.2, 4.5, NA)
>  zzz <- c(3.2, 4.5, 5.5)

If there are no NAs in the list:
---
> length(na.omit(zzz))
[1] 0
---
I expected 3.

But, if there are NAs, the correct answer is returned
---
> length(na.omit(zz))
[1] 2
---

Yours,
PdeV



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] na.omit() (PR#889)
devoilp@dpi.qld.gov.au