On Tuesday, July 07, 2009 3:20 PM, Godmar Back wrote: > ...That would be wrong, wouldn't it, if the > other replies are correct....
Yes. It was wrong. This isn't: countN <- function ( v ) { length ( v ) - sum ( is.na ( v ) ) } But there are really tons of ways to do it. Even your way is not wrong... -- David ----------------------------------------------------- David Huffer, Ph.D. Senior Statistician CSOSA/Washington, DC david.huf...@csosa.gov ______________________________________________ R-help@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.