List, I am trying to extract summary statistics from a data frame with several variables (and NAs) into a dataframe with the columns: Variablename (ie the colnames of original data), mean, stdev, max, min, Valid N, Missing Values.
Extracting the statistics is straightforward using stack and aggregate. However, I haven't succeeded in obtaining the number of Missing Values. I can extract these from describe (Hmisc library), but surely there is a simpler way similar to obtaining the mean using aggregate? Suggestions are much appreciated Thanks Herry -------------------------------------------- Alexander Herr - Herry CSIRO Sustainable Ecosystems: http://www.cse.csiro.au/ -------------------------------------------- [[alternate HTML version deleted]] ______________________________________________ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help
