View source: R/implement_cleaning_log.R
implement_cleaning_log | R Documentation |
implement cleaning log on raw data set. [This function is extracted from butteR]
implement_cleaning_log(
df,
df_uuid,
cl,
cl_change_type_col,
change_type_for_change_response = "change_response",
change_type_for_blank_response = "blank_response",
change_type_for_no_change = "no_action",
change_type_for_deletion = "remove_survey",
cl_change_col,
cl_uuid,
cl_new_val
)
df |
raw data (data.frame) |
df_uuid |
column in raw data with uuid |
cl |
cleaning log (data.frame) |
cl_change_type_col |
column in cleaning log which specifies change type to be made |
change_type_for_change_response |
values in change type column which should be changed to a new value. |
change_type_for_blank_response |
values in change type column which should be blank (NA). |
change_type_for_no_change |
values in change type column which should NOT be changed to a new value. |
change_type_for_deletion |
values in change type column which should be deleted from the data. |
cl_change_col |
column in cleaning log which specifies data set column to change |
cl_uuid |
uuid in cleaning log |
cl_new_val |
cleaning log column specifying the new correct value |
clean data set
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.