salt_delete {salty} | R Documentation |
Delete some characters from some values
Description
Delete some characters from some values
Usage
salt_delete(x, p = 0.2, n = 1)
Arguments
x |
A vector. This will always be coerced to character during salting. |
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
Examples
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_delete(x, p = 0.5, n = 5)
salt_empty(x, p = 0.5)
salt_na(x, p = 0.5)
[Package salty version 0.1.0 Index]