formMWRcens | R Documentation |
Format censored data
formMWRcens(censdat)
censdat |
input data frame |
This function is used internally within readMWRcens
to format the input data for downstream analysis. The formatting includes:
Convert Parameter: All parameters are converted to Simple Parameter
in paramsMWR
as needed,
Convert Missed and Censored Records: All values are converted to numeric
A formatted data frame of the censored data
library(dplyr)
censpth <- system.file('extdata/ExampleCensored.xlsx',
package = 'MassWateR')
censdat <- suppressMessages(readxl::read_excel(censpth,
na = c('NA', 'na', '')
))
formMWRcens(censdat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.