View source: R/msf_dict_rename_helper.R
msf_dict_rename_helper | R Documentation |
Helper for aligning your data to a standardised dictionary or your own dictionary.
msf_dict_rename_helper( disease, name, varnames = "data_element_shortname", varnames_type, rmd, template = TRUE, copy_to_clipboard = TRUE )
disease |
Specify which disease you would like to use. Currently supports "Cholera", "Measles", "Meningitis", "AJS", "Mortality", "Nutrition", "Vaccination_short" and "Vaccination_long". |
name |
The name of the dictionary stored in the package. The default
will use dictionaries from the package. However you can also use
dictionaries not stored within this package, to use these:
specify |
varnames |
The name of column that contains variable names. The
default set to "data_element_shortname".
If |
varnames_type |
The name of column that contains the variable type.
The default will use "data_element_valuetype" for DHIS2 and "type"
for Kobo dictionaries. If you specify your own dictionary then this needs to
be the same length as |
rmd |
The Rmarkdown template which you would like to compare to. Default
is will use those included in the package. However you can also use
Rmarkdowns not stored within this package, to use these:
specify |
template |
If |
copy_to_clipboard |
if |
A dplyr command used to rename columns in your data frame according to the dictionary
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.