Description Usage Arguments Details Examples
Replace missing value methods with a variety of methods
1 | impute_functions(.tbl, .na, .vars, .predicate)
|
.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 |
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:
explicit: impute_explicit
, impute_explicit_at
, impute_explicit_all
, impute_explicit_if
zero: impute_zero
, impute_zero_at
, impute_zero_all
, impute_zero_if
inf: impute_inf
, impute_inf_at
, impute_inf_all
, impute_inf_if
neginf: impute_neginf
, impute_neginf_at
, impute_neginf_all
, impute_neginf_if
constant: impute_constant
, impute_constant_at
, impute_constant_all
, impute_constant_if
max: impute_max
, impute_max_at
, impute_max_all
, impute_max_if
min: impute_min
, impute_min_at
, impute_min_all
, impute_min_if
median: impute_median
, impute_median_at
, impute_median_all
, impute_median_if
mean: impute_mean
, impute_mean_at
, impute_mean_all
, impute_mean_if
most_freq: impute_most_freq
, impute_most_freq_at
, impute_most_freq_all
, impute_most_freq_if
quantile: impute_quantile
, impute_quantile_at
, impute_quantile_all
, impute_quantile_if
sample: impute_sample
, impute_sample_at
, impute_sample_all
, impute_sample_if
random: impute_random
, impute_random_at
, impute_random_all
, impute_random_if
replace: impute_replace
, impute_replace_at
, impute_replace_all
, impute_replace_if
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.