deanonymise: Deanonymize data

Description Usage Arguments Value Examples

View source: R/utility_functions.R

Description

Deanonymize the anonymized columns in a data.frame. Also take a look at function anonymise.

Usage

1
deanonymise(original_df, modified_df, cols_to_deanon, algo = "md5")

Arguments

original_df

A data.frame containing the original data.

modified_df

A data.frame containing the anonymized modified data.

cols_to_deanon

A character vector containing the column names to deanonymize.

algo

The algorithm which was 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 deanonymized data.

Examples

1
2
3
deanonymise(original_df = data.frame(col1 = c("val1", "val2", "val3"), col2 = c(3, 5, 7)),
modified_df = data.frame(col1 = c("b33fc2aa", "b33fc2aa", "2a369310"), col2 = c(8, 3, 9)),
cols_to_deanon = c("col1"), algo = "crc32")

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