Learn R Programming

metamorphr (version 0.3.0)

impute_rf: 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, ...)

Value

A tibble with imputed missing values.

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.

References

  • missForest on CRAN

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

Examples

Run this code
toy_metaboscape %>%
  impute_rf()

Run the code above in your browser using DataLab