add_numeric_blur {deident} | R Documentation |
De-identification via numeric aggregation
Description
add_numeric_blur()
adds an bluring step to a transformation pipeline
(NB: intended for numeric data). When ran as a transformation, the data is
split into intervals depending on the cuts
supplied of the series
[-Inf, cut.1), [cut.1, cut.2), ..., [cut.n, Inf] where
cuts
= c(cut.1, cut.2, ..., cut.n).
Usage
add_numeric_blur(object, ..., cuts = 0)
Arguments
object |
Either a |
... |
variables to be transformed. |
cuts |
The position in which data is to be divided. |
Value
A 'DeidentList' representing the untrained transformation pipeline. The object contains fields:
-
deident_methods
a list of each step in the pipeline (consisting ofvariables
andmethod
)
and methods:
-
mutate
apply the pipeline to a new data set -
to_yaml
serialize the pipeline to a '.yml' file
[Package deident version 1.0.0 Index]