Learn R Programming

SmartMeterAnalytics (version 1.1.1)

replaceNAsFeatures: Replaces NA values with a given ones

Description

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

Usage

replaceNAsFeatures(indata, features, replacement = 0)

Value

the modified data.frame with replaced values

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

Author

Konstantin Hopf konstantin.hopf@uni-bamberg.de

See Also

naInf_omit, remove_empty_features