Learn R Programming

specmine (version 3.1.6)

impute_nas_mean: Impute missing values with mean

Description

Impute missing values with mean

Usage

impute_nas_mean(dataset)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

Value

Returns the dataset with no missing values.

Examples

Run this code
# NOT RUN {
  ## Example of NA imputation with mean
  library(specmine.datasets)
  data(propolis)
  propolis = impute_nas_mean(propolis)
# }

Run the code above in your browser using DataLab