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 ______________________________________________ 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.