Learn R Programming

specmine (version 3.1.6)

impute_nas_value: Impute missing values with value replacement

Description

Impute missing values with value replacement.

Usage

impute_nas_value(dataset, value)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

value

value to replace the missing values.

Value

Returns the dataset with no missing values.

Examples

Run this code
# NOT RUN {
  ## Example of NA imputation with value replacing
  library(specmine.datasets)
  data(propolis)
  propolis = impute_nas_value(propolis, 0.0005)
# }

Run the code above in your browser using DataLab