Skip to contents

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"))

Arguments

x

A data frame or a list of data frames.

drop_columns

Columns to remove. Defaults to student_id, student_label, and email.

Value

The input data with selected columns removed, preserving the shape of x.

Examples

results <- data.frame(
  student_id = "student_001",
  email = "student@example.org",
  score = 10
)
anonymise_results(results)
#>   score
#> 1    10