put random NA values within a dataframe for teaching and
testing purposes.
Usage
add_random_na(data, n, exclude_cols = NULL)
Arguments
- data
a dataframe
- n
number of NA values to insert
- exclude_cols
string or vector of strings with column to exclude
from NA filling
Value
a dataframe with random NA