On Tue, 31 Aug 2021, Jeff Newmiller wrote:
Never use stringsAsFactors on uncleaned data. For one thing you give a factor to as.Date and it tries to make sense of the integer representation, not the character representation.
Jeff, Oops! I had changed it in a previous version of the script and for got to change it back again. Fixed
dtad <- ( dta %>% group_by( sampdate ) %>% summarise( exp_value = mean(cfs, na.rm = TRUE) , Count = n() ) )
Thank you. Now I understand how to use dplyr's summarize(). Best regards, 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.