View source: R/missingness_utils.R
miss_at_random | R Documentation |
Function constructor for injecting independent missing-at-random NAs to columns
miss_at_random(p, nvars)
p |
numeric(1). Proportion of observations to change to missing |
nvars |
numeric(1). Number of columns this behavior should be applied to. |
a function suitable for use in missingness recipe, which when given .df
, the data
will return an N x nvars logical matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.