replaceNAsFeatures: Replaces NA values with a given ones

View source: R/F_replaceNAsFeatures.R

replaceNAsFeaturesR 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


SmartMeterAnalytics documentation built on June 8, 2025, 1:55 p.m.