[R] Counting non-missing values XXXX

2011-08-27 Thread Dan Abner
Hello everyone, What is the most elegant and efficient way to count non-missing values of a vector? Thanks! Dan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Counting non-missing values XXXX

2011-08-27 Thread R. Michael Weylandt michael.weyla...@gmail.com
sum(!is.na(x)) Michael On Aug 27, 2011, at 4:39 PM, Dan Abner dan.abne...@gmail.com wrote: Hello everyone, What is the most elegant and efficient way to count non-missing values of a vector? Thanks! Dan [[alternative HTML version deleted]]