Description Usage Arguments Value Examples
View source: R/salt_substitute.R
Substitute certain characters in a vector
1 | salt_substitute(x, substitutions, p = 0.2, n = 1)
|
x |
A vector. This will always be coerced to character during salting. |
substitutions |
Values to be substituted in |
p |
A number between 0 and 1. Percent of values in |
n |
A positive integer. Number of times to add new values from
|
A character vector the same length as x
1 2 3 4 5 | x <- c("Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"Nunc finibus tortor a elit eleifend interdum.",
"Maecenas aliquam augue sit amet ultricies placerat.")
salt_substitute(x, shaker$digits, p = 0.5, n = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.