loessSmoothMod: loessSmoothMod Add a column of the smoothed values using...

View source: R/library--data_prep--smooth_tools--ts_trend_gen.R

loessSmoothModR Documentation

loessSmoothMod Add a column of the smoothed values using Loess

Description

loessSmoothMod Add a column of the smoothed values using Loess

Usage

loessSmoothMod(
  DF,
  InVar = "N1",
  OutVar = "Loess",
  Span = "guess",
  Filter = NULL
)

Arguments

DF

DF we are adding the loess smooth col to

InVar

The column to be smoothed

OutVar

The name of the new column

Span

The span fed into loess smoothing. if it equals "guess" then it if found using parameterGuess

Filter

Prefilter using the value of a Filter col

Value

A DF with an extra col with a loesss smoothed version of InVar

Examples

data(Example_data, package = "Covid19Wastewater")
head(loessSmoothMod(Example_data))

Covid19Wastewater documentation built on Aug. 25, 2023, 1:07 a.m.