[R] Finding NA values.

Moshe Olshansky m_olshansky at yahoo.com
Wed Oct 17 03:46:02 CEST 2007


If your vector is x then 
which(is.na(x))
produces that inecies.

--- Megh Dal <megh700004 at yahoo.com> wrote:

> I have a vector with some of it's elements are NA. I
> am looking for a function to detect what are the
> corresponding index number of NA values. Anyone can
> help me on this regard?
> 
>        
> ---------------------------------
> Building a website is a piece of cake. 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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.
>



More information about the R-help mailing list