To protect patient confidentiality, sometimes the identifier in datasets should be recoded.

RecodeIdentifier(input.data, name.of.identifier, file.name)

Arguments

input.data

Dataframe with the data, including column to recode.

name.of.identifier

String specifying the column name of the column with data to recode.

file.name

Name of the file or absolute path of the file to write the output to.

Value

A modified dataframe with recoded identifier will be outputted. The recoded data will also be written into a text file.

See also