Learn R Programming

Covid19Wastewater (version 1.0.1)

loessSmoothMod: 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
)

Value

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

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

Examples

Run this code
data(Example_data, package = "Covid19Wastewater")
head(loessSmoothMod(Example_data))

Run the code above in your browser using DataLab