# NOT RUN {
r_na(mtcars)
r_na(mtcars, NULL)
library(dplyr)
r_data_frame(
n = 30,
id,
race,
age,
sex,
hour,
iq,
height,
died,
Scoring = rnorm,
Smoker = valid
) %>%
r_na(prob=.4)
# }
Run the code above in your browser using DataLab