Description Usage Arguments Examples
View source: R/insert_missing.R
Insert missing values into a data frame or matrix.
1 | insert_missing(x, p = 0.1, cols = NULL)
|
x |
A data frame or matrix. |
p |
Proportion of values to replace at random with |
cols |
Either a character vector of columns names or an integer vector
of column positions specifying which columns to insert mssing values into.
Default is |
1 2 | insert_missing(iris, 0.5)
insert_missing(iris, 0.5, cols = 1:4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.