[R] Find NA in xts object
Joshua Ulrich
josh.m.ulrich at gmail.com
Sun Mar 17 02:47:21 CET 2013
On Sat, Mar 16, 2013 at 2:25 PM, Pete <freerisk3 at gmail.com> 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
More information about the R-help
mailing list