[R] Why does "summary" show number of NAs as non-integer?

From: Earl F. Glynn <efg_at_stowers-institute.org>
Date: Wed 01 Jun 2005 - 08:14:13 EST


Example:

> set.seed(19)
> summary( c(NA, runif(10,1,100), NaN) )

   Min. 1st Qu. Median Mean 3rd Qu. Max. NA's   7.771 24.850 43.040 43.940 63.540 83.830 2.000

Why isn't the number of NA's just "2" instead of the "2.000" shown above?

efg



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jun 01 08:20:43 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:17 EST