impute_functions: Table imputation methods

Description Usage Arguments Details Examples

Description

Replace missing value methods with a variety of methods

Usage

1
impute_functions(.tbl, .na, .vars, .predicate)

Arguments

.tbl

table-like or list-like structure

.na

value/function to be used for replacement

.vars

list of columns generated by vars(), or a character vector of column names, or a numeric vector of column positions.

.predicate

A predicate function to be applied to the columns or a logical vector.

...

addition passed to the imputation method

Details

These methods are modelled closely after dplyr::mutate() and the select style verbs. Most of the functions depend on the na.tools package.

Function List:

Examples

1
2
3
4
5
6
7
8
 ## Not run:  
  nacars %>% impute_zero() 
  nacars %>% impute_zero( mpg, cyl )
  nacars %>% impute_zero( "mpg", "cyl" )
  nacars %>% impute_zero( c("mpg","cyl") )
  nacars %>% impute_zero( 1:2 )
 
## End(Not run)

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