Description Usage Arguments Value Examples
Replaces a proportion of values with NA. Useful for simulating missing data.
1 | r_na(x, cols = -1, prob = 0.05)
|
x |
A |
cols |
Numeric indices of the columns to incude (use |
prob |
The proportion of each column/vector elements to assign to
|
Returns a data.frame
or list
with random missing values.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.