redactor2 | R Documentation |
Redact values in a vector based on frequency values
redactor2(n, threshold, x = NULL)
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. |
x |
Values to redact. If |
If x
is NULL
, then this function redacts values in n
and returns the redacted vector.
If x
is not NULL
, values in x
are redacted according to frequencies in n
.
Values are redacted as follows:
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 vector the same length as n
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.