readMWRcens | R Documentation |
Read censored data from an external file
readMWRcens(censpth, runchk = TRUE, warn = TRUE)
censpth |
character string of path to the censored file |
runchk |
logical to run data checks with |
warn |
logical to return warnings to the console (default) |
Data are imported with read_excel
, checked with checkMWRcens
, and formatted with formMWRcens
. The input file includes rows for each parameter and two columns indicating the parameter name and number of missed or censored records for that parameter. The data are used to complete the number of missed and censored records column for the completeness table created with tabMWRcom
and is an optional input. The parameters in this file must match those in the data quality objectives file for frequency and completeness.
A formatted censored data frame that can be used for downstream analysis
censpth <- system.file('extdata/ExampleCensored.xlsx', package = 'MassWateR')
censdat <- readMWRcens(censpth)
head(censdat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.