inst/extdata/nacars.R

#' Make nacars 

data(mtcars)
nacars <- head(mtcars)
nacars[ c(3,5),] <- NA_real_
nacars[ , c(3,5) ] <- NA_real_
nacars

devtools::use_data(nacars, overwrite=TRUE)

library(data.table)
nacars_dt <- nacars
setDT(nacars_dt)
nacars_dt <- data.table( nacars )

devtools::use_data(nacars_dt, overwrite = TRUE )

Try the tidyimpute package in your browser

Any scripts or data that you put into this service are public.

tidyimpute documentation built on May 2, 2019, 3:32 p.m.