set.missing.to.mean: Replace numeric missing values with mean

Description Usage Arguments Value

View source: R/functions.R

Description

Replaces missing (NA) values with column mean. Only applicable for numerics.

Usage

1

Arguments

data

- data frame with variables of interest

variables

- vector of numeric variables to replace missing values

Value

data frame with replaced missing values for selected variables


konstantin-kotochigov/R_ml_utils documentation built on May 3, 2019, 4:07 p.m.