This function takes the output of the deidentify_choices_table() function and a row number or vector of row numbers and outputs the code that you will use to deidentify the data. NOTE: this function will not have any code to encrypt any columns so you must input that yourself.

get_choices_code(deidentify_choices_table, row_number, data_name = "data")

Arguments

deidentify_choices_table

A data.frame returned from the deidentify_choices_table() function.

row_number

A number or vector of numbers for the row(s) that you want to output code for

data_name

A string with the name of the data object you want to deidentify. This should be the same data you inputted in deidentify_choices_table().

Value

Prints in the console the code to use for the deidentify_data() function. Also returns this string invisibly.