mutate_sensitive: Alter sensitive columns to make them less sensitive

View source: R/anonymize.R

mutate_sensitiveR Documentation

Alter sensitive columns to make them less sensitive

Description

The function will round Age to nearest integer, and scramble participants ids, to make data less sensitive.

Usage

mutate_sensitive(data, scramble_ids = TRUE)

Arguments

data

The MOAS or a MOAS generated file.

scramble_ids

make IDs anonymous

Details

Scrambling IDs is default behaviour, set this to FALSE if you do not wish to do so. Note that the data is then still considered sensitive to some degree, be careful with it. If you want your ID scramble to be reproducible, set a seed before running the function.

Value

tibble


LCBC-UiO/MOAS documentation built on Aug. 28, 2023, 3:29 a.m.