anonymise: anonymise

Description Usage Arguments Value See Also

View source: R/anonymise.R

Description

Scan a column of free text responses and remove any obvious references to names

Usage

1
2
anonymise(data, column, add_names = c(""), auto = TRUE,
  complete = FALSE, identify = FALSE, gender = FALSE)

Arguments

data

dataframe or tibble with a row per survey response

column

name of a character column in the data frame to be anonymised

add_names

character vector of names to anonymise (optional)

auto

logical indicating whether to look for names to anonymise in the column. Defaults to TRUE.

complete

logical indicating whether to anonymise every capitalised word that doesn't start a sentence. Defaults to FALSE.

identify

logical indicating whether anonymised names should be distinguishable from each other by numbers. Defaults to FALSE.

gender

logical indicating whether to remove references to gender pronouns (he/she him/her etc.). Defaults to FALSE.

Value

Original dataframe with column anonymised

See Also

Other anonymiser functions: anonymise_all, anonymise_at


chrisbrownlie/surveyr documentation built on Dec. 1, 2019, 12:34 a.m.