powered by
Pass in a data frame along with a vector of variables and a vector of fill values. (Default fill is 0 for numeric and blank " " for character.)
ru_fillna(dsetin, vars = NULL, fills = NULL)
The incoming data frame with the requested NA values replaced.
Incoming data frame to have labels added to columns.
Vector of variables to replace NA values.
Vector of fill values.
Yongwei Wang, yongwei.x.wang@viivhealthcare.com Chris Rook, cr883296@gmail.com
library(repfun) repfun::ru_fillna(airquality, vars=c('Ozone','Solar.R'), fills=c(1111,2222)) %>% head(10)
Run the code above in your browser using DataLab