apply_cl_cm: apply_cl_cm

Description Usage Arguments

View source: R/utility_function.R

Description

apply_cl_cm

Usage

1
2
3
4
5
6
7
8
9
apply_cl_cm(
  data,
  vars_bolean = TRUE,
  vars_ordered = c(1:50),
  data_selected_order = TRUE,
  save_ordered_data = "path/to/save/data.csv",
  column_mapping = TRUE,
  config_folder_path = "/config_folder_path/column_mapping.rds"
)

Arguments

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


gabrielburcea/cvindia documentation built on Feb. 17, 2021, 3:31 a.m.