View source: R/create_missingness.R
create_missings | R Documentation |
data.frame
Create missing values in a data.frame
create_missings( data, idvars, prop_mis, prop_cc, patterns = NULL, weights = NULL, type = "RIGHT", groups = NULL, varlvls = NULL )
data |
a complete |
prop_mis |
a named vector indicating the proportion of missing values per variable (only variables with proportions > 0 have to be included) |
prop_cc |
the proportion of complete cases |
patterns |
a matrix specifying the missing data patterns to be used; a
|
weights |
a matrix of the same dimension as |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.