impute_rf: Impute missing values using random forest

View source: R/imputes.R

impute_rfR Documentation

Impute missing values using random forest

Description

Basically a wrapper function around ⁠missForest::⁠missForest. Imputes missing values using the random forest algorithm.

Usage

impute_rf(data, random_seed = 1L, ...)

Arguments

data

A tidy tibble created by read_featuretable.

random_seed

A seed for the random number generator. Can be an integer or NULL (in case no particular seed should be used) but for reproducibility reasons it is strongly advised to provide an integer.

...

Additional parameters passed to missForest.

Value

A tibble with imputed missing values.

References

  • missForest on CRAN

  • D. J. Stekhoven, P. Bühlmann, Bioinformatics 2012, 28, 112–118, DOI 10.1093/bioinformatics/btr597.

Examples

toy_metaboscape %>%
  impute_rf()

metamorphr documentation built on June 10, 2026, 5:07 p.m.