[R] How would i sum the number of NA's in multiple vectors
carl at witthoft.com
Thu Oct 17 13:34:41 CEST 2013
> Hi guys this is my first post, i need help summing the number of NA's in a
> few vectors
> for example..
> how would i get a result that only sums the number of NA's in the vector?
See ?is.na .
Now, if I can interpret your question correctly, you're actually looking for
the number of NA per *position* in the vectors, so let's make them into a
then use apply over columns
View this message in context: http://r.789695.n4.nabble.com/How-would-i-sum-the-number-of-NA-s-in-multiple-vectors-tp4678411p4678432.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help