On Sat, Mar 16, 2013 at 2:25 PM, Pete <[email protected]> wrote:
> Hi to all, i'm new to R
>
> I have an xts object.
> Can i find:
> a) how many NA are in my object ?

sum(is.na(obj))

> b) eventually where (in which line) they are
>
which(is.na(obj))

> Thank you
>

Best,
--
Joshua Ulrich  |  about.me/joshuaulrich
FOSS Trading  |  www.fosstrading.com

R/Finance 2013: Applied Finance with R  | www.RinFinance.com

______________________________________________
[email protected] 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.

Reply via email to