I have the following:
Tout = c(". ", ". ",
+ "-51.0", " -9.6", " -9.6", " -9.6", " -9.6", " -9.6", " -9.6",
+ " -9.6", " -9.5", " -9.5", " -9.6", " -9.5", " -9.6", " -9.6",
+ " -9.5", " -9.4", " -9.3", " -9.3", " -9.3", " -9.2", " -9.0",
+ " -9.0", " -8.9", " -8.9", " -8.9")
How can I take the mean while ignoring the null values? I don't want to delete the ". ", just ignore. na.rm=TRUE does not work for this.
Jeffrey
Calculate mean ignore null
2 messages · Jeffrey Joh, michael.weylandt at gmail.com (R. Michael Weylandt
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110802/6bca296e/attachment.pl>