replaceNAsFeatures: Replaces NA values with a given ones

Description Usage Arguments Value Author(s) See Also

View source: R/F_replaceNAsFeatures.R

Description

Taks a data.frame and replaces all NA values with a certain value.

Usage

1
replaceNAsFeatures(indata, features, replacement = 0)

Arguments

indata

a data.frame

features

a vector of variable names (must be colum names of indata that are to be used for NA-replacement

replacement

the alternative value, NA values should be replaced with, zero by default

Value

the modified data.frame with replaced values

Author(s)

Konstantin Hopf konstantin.hopf@uni-bamberg.de

See Also

naInf_omit, remove_empty_features


SmartMeterAnalytics documentation built on Aug. 18, 2020, 5:07 p.m.