Message-ID: <COL101-W605ABC51CF31F4F3E33A44C33B0@phx.gbl>
Date: 2011-08-02T21:47:51Z
From: Jeffrey Joh
Subject: Calculate mean ignore null
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