Description Usage Arguments Value
View source: R/random_missingness.R
Generates random NA
's in in a column or groups of columns of a data frame.
Used in imputation simulations based on complete datasets.
1 | random_missingness(aDataFrame, columnNames, percentMissing = 10)
|
aDataFrame |
A data.frame where missingness will be simulated. |
columnNames |
A string or a vector of strings that describe the column names (labels) where missingness will be simulated. |
percentMissing |
The percentage of missingness within specified columns.
"Percent missing" uses a binomial distribution to simulate missing data.
Default is 10 (i.e. 10% missing). Use |
A data table with columns of missing data (specified as NA
's).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.