vector: a vector whose elements will be checked for duplicates
na.rm: logical. If na.rm = TRUE, NA values in the vector will be removed before searching for duplicates. If na.rm = FALSE, NA values will be included in the search as potentially duplicated values. By default, na.rm = TRUE.
sigfigs: number of significant digits to round to in the percent column of the summary (default = 2)
output: type of output. If output = "summary", the function's output will be a data.table summarizing duplicated values and their counts. If output = "duplicated_values", the function's output will be a vector of duplicated values. If output = "non_duplicated_values", the function's output will be a vector of non-duplicated values (default = "summary")
Returns
the output will be a data.table object (summary), a vector of duplicated values, or a vector non-duplicated values.