View source: R/utility_function.R
apply_cl_cm
1 2 3 4 5 6 7 8 9 |
data |
a dataframe or a tibble |
vars_ordered |
selecting the variables in the order you want. it is similiar to dplyr::select('var1', 'var2'). |
data_selected_order |
a bolean TRUE or FALSE. If TRUE then dataset obtained in vars_ordered will be saved into a folder of your choice. |
save_ordered_data |
the path folder where the data is saved |
column_mapping |
a bolean TRUE OR FALSE. If TRUE, then a column mapping tibble with 2 variables - 'provided' and 'standard'. provided variable stores all the variables of data passed into this function, stored as rows; standard variable contains the same variables as in provided column but all variables are transformed from CAPITAL letters variables to lower letters. e.g. PSEUDO_ID -> pseudo_id |
config_folder_path |
the path of your choice where the column_mapping tibble (and other tibbles that form the process of recoding levels of variables) are stored |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.