View source: R/redaction.R View source: R/codelists.R
redactor | R Documentation |
Indicates which values to redact from a vector of frequencies
Indicates which values to redact from a vector of frequencies
redactor(n, threshold)
redactor(n, threshold)
n |
A vector of integer frequencies or counts from a 1-dimension frequency distribution. |
threshold |
The redaction threshold. All values (and possibly more; see details) less than or equal to this threshold will be redacted. |
Given a vector of frequencies n
, this function returns a logical vector of frequencies to be redacted.
All frequencies less than or equal to the threshold are redacted.
If the sum the redacted frequencies is also less than or equal to the threshold, then the smallest unredacted frequency is also redacted.
Given a vector of frequencies n
, this function returns a logical vector of frequencies to be redacted.
All frequencies less than or equal to the threshold are redacted.
If the sum the redacted frequencies is also less than or equal to the threshold, then the smallest unredacted frequency is also redacted.
A logical vector the same length as n
.
A logical vector the same length as n
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.