An experimental function for the efficient application of the redaction functions. This function wraps a redaction function in a dynamic programming class which stores previously redacted values and reuses them when the same value is encountered again.
Details
This function splits the data frame into chunks and processes each chunk separately. This is useful for large data frames where the redaction function may be slow.
Examples
if (FALSE) { # \dontrun{
example.data <- head(the_one_in_massapequa)
report <- pidpos(example.data, to_remove = "speaker")
redactions.raw <- report_to_redaction_rules(report)
replace_by <- make_random_replacement()
redactions <- auto_replace(redactions.raw, replacement_func = replace_by)
redaction.f <- prepare_redactions(redactions)
efficient_redaction(example.data, redaction.f)
} # }
