On Thu, 4 Nov 2021, Rui Barradas wrote:

Maybe
which(is.na(pdx_stage$ft))
Have you tried na.rm = TRUE?
mean(pdx_stage$ft, na.rm = TRUE)

Rui,

I just scrolled through the data file.

Yes, there are severeal NAs when the equipment was down and I hadn't put
na.rm = TRUE in the read_csv() import command.

I hadn't caught them before.

Thanks,

Rich

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to