lin_inter_missing_energy: Linearly interpolate missing energy values.

View source: R/data_quality.R

lin_inter_missing_energyR Documentation

Linearly interpolate missing energy values.

Description

If there exist lest than four missing values, represented by NA values, fill with linearly interpolated values.

Usage

lin_inter_missing_energy(data, threshold = 4)

Arguments

data

A data frame with an 'elec_cons' column.

threshold

The maximum number of consective values that may be filled with interpolated values. By default four.

Value

The data frame with 'missing values' filled in.

Examples

## Not run: 
lin_inter_missing_energy(data)

## End(Not run)

PVplr documentation built on Feb. 16, 2023, 9:56 p.m.