replaceNAsFeatures {SmartMeterAnalytics}R Documentation

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)

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


[Package SmartMeterAnalytics version 1.0.3 Index]