View source: R/teaching_utils.R
add_random_na | R Documentation |
put random NA values within a dataframe for teaching and testing purposes.
add_random_na(data, n, exclude_cols = NULL)
data |
a dataframe |
n |
number of NA values to insert |
exclude_cols |
string or vector of strings with column to exclude from NA filling |
a dataframe with random NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.