replace_confidential: Replace confidential values

Description Usage Arguments Details

Description

The NZ census commonly uses the notation of '..C' when values are below a certain threshold that they may reveal private details of certain individuals. However, it is often required in an analysis to replace these values and convert the column to an integer (to include ..C they need to be character).

Usage

1
replace_confidential(.data, replacement_value = NA_integer_)

Arguments

.data

The data set to have its confidential values removed.

replacement_value

The value to replace the confidential ones with. Defaults to NA_integer.

Details

This function takes the data set, and a replacement value and replaces all of the ..C values. Mainly for use within the transform_census function.


phildonovan/nzcensr documentation built on May 12, 2019, 7:20 p.m.