Description Usage Arguments Value
This function cleans the raw data by performing the following steps:
Remove leading and trailing whitespace from any character fields!
Replace any instances of NULL or #N/A in character fields with NA
Convert the following columns to factors: AgeBand, EthnicGroup, Sex, AdmissionMethodCode, AdmissionType, CSPLastWard
Convert the following columns from character to Date format: the following columns of the raw data: AdmissionDate, DischargeDate, EpisodeStartDate, EpisodeEndDate
1 | clean_data(df, restrict_disch_date = TRUE)
|
df |
the data frame containing the episode data to be cleaned |
A data frame containing the cleaned data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.