salt_insert {salty} | R Documentation |
Insert new characters into some values in a vector
Description
Inserts a selection of characters into a percentage of values in the supplied vector.
Usage
salt_insert(x, insertions, p = 0.2, n = 1)
Arguments
x |
A vector. This will always be coerced to character during salting. |
insertions |
A shaker function, or a character vector. |
p |
A number between 0 and 1. Percent of values in |
n |
A positive integer. Number of times to add new values from
|
Value
A character vector the same length as x
[Package salty version 0.1.0 Index]