approximate_NAs: Impute NAs using mice.

Description Usage Arguments Value

View source: R/kmeans-analysis.R

Description

This function is used to fill missing NA values using common imputation methods. The imputation method can be chosen by setting the meth parameter. For a list of all the available imputation methods available, please check the documentation of the mice::mice function (?mice::mice)

Usage

1
2
approximate_NAs(data, seed, exclude_variables = list("lon", "lat",
  "id_pixel"), m = 5, maxit = 50, meth = "pmm", verbose = FALSE, ...)

Arguments

data

a dplyr dataframe containing the data to be standardized

seed

random seed for reproducibility purposes

exclude_variables

variables to be excluded from the standardization process. A list of characters.

m

Number of multiple imputations. The default is m=5.

maxit

A scalar giving the number of iterations. The default is 5

meth

method used for imputation. See mice::mice function description for more information.

verbose

Be verbose?

...

other parameters passed directly to the mice::mice function

Value

A dplyr dataframe


pegoraro/qchlorophyll documentation built on May 24, 2019, 11:46 p.m.