Removes selected identifier columns from a data frame or list of data frames. This is a practical data-minimisation helper. It does not guarantee legal or statistical anonymity.
Usage
anonymise_results(x, drop_columns = c("student_id", "student_label", "email"))Examples
results <- data.frame(
student_id = "student_001",
email = "student@example.org",
score = 10
)
anonymise_results(results)
#> score
#> 1 10