.anonymise {simulist}R Documentation

Anonymise names

Description

A simple algorithm to replace names with an alphanumeric string with an fixed number of characters (i.e. nchar()) specified by string_len.

Usage

.anonymise(x, string_len = 10)

Arguments

x

A vector of character strings.

string_len

A single numeric specifying the number of alphanumeric characters to use for each anonymising character string. Default is 10.

Value

A vector of character strings of equal length to the input.


[Package simulist version 0.5.0 Index]