powered by
Function that tries to detect spelling mistakes in a given activity log column
detect_similar_labels( activitylog, column_labels, max_edit_distance, show_NA, ignore_capitals, filter_condition )
tbl_df providing an overview of similar labels for the indicated column
The activity log
The name of the column(s) in which to search for spelling mistakes
The maximum number of insertions, deletions and substitutions that are allowed to be executed in order for two strings to be considered similar.
A boolean indicating if labels that do not show similarities with others should be shown in the output
A boolean indicating if capitalization should be included or excluded when calculating the edit distance between two strings
Condition that is used to extract a subset of the activity log prior to the application of the function
# \donttest{ data("hospital_actlog") detect_similar_labels(activitylog = hospital_actlog, column_labels = "activity", max_edit_distance = 3) # }
Run the code above in your browser using DataLab