AOCF: Average Observation Carried Forward

Description Usage Arguments Value Examples

View source: R/utils.R

Description

This a function to handle missing values in a numeric dataframe column. It fills empty/missing rows values with the average numeric value rounded to the minimum number of decimal places in the input data.

Usage

1
AOCF(x)

Arguments

x

data series/vector with missing values to fill (vector)

Value

returns the same data series with missing values filled in with the average numeric value

Examples

1
AOCF(c(NA, 2.230, 1.1, 2390.141, NA, 1341.012, 10.24))

melren/effiplot documentation built on May 4, 2019, 7:37 a.m.