clean_data | R Documentation |
clean_data
returns a dataset which has been transformed and cleaned for subsequent functions in this
package.
clean_data(dat = NULL, style = "long", id = NULL, prefix_dx = "dx")
dat |
dataset |
style |
long, the default, is one diagnosis column per row whereas wide is multiple diagnosis columns |
id |
unique patient identifier variable name |
prefix_dx |
the variable prefix for the diagnosis columns (defaults to "dx"), in quotes |
This function takes our raw administrative data, in a number of different forms, and prepares it in a way which allows the other functions in this package to easily work with it. It is recommended to run this package on all data regardless of setup.
dataframe with multiple rows per patient, which has re-structured their administrative data
clean_data(dat = i10_wide, id = patient_id, style = "wide", prefix_dx = "dx")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.