anonymise: Anonymize data

Description Usage Arguments Value Examples

View source: R/utility_functions.R

Description

Anonymize given columns in a data.frame. Also take a look at function deanonymise.

Usage

1
anonymise(original_df, cols_to_anon, algo = "md5")

Arguments

original_df

A data.frame containing the original data.

cols_to_anon

A character vector containing the column names to anonymize.

algo

The algorithms to be used to anonymize data; currently available choices are md5, which is also the default, sha1, crc32, sha256, sha512, xxhash32, xxhash64, murmur32, spookyhash and blake3.

Value

A data.frame containing the anonymized data.

Examples

1
2
anonymise(original_df = data.frame(col1 = c("val1", "val2", "val3"), col2 = c(3, 5, 7)),
cols_to_anon = c("col1"), algo = "crc32")

deepjyot1991/zimplify documentation built on Dec. 19, 2021, 10:09 p.m.