powered by
loessSmoothMod Add a column of the smoothed values using Loess
loessSmoothMod( DF, InVar = "N1", OutVar = "Loess", Span = "guess", Filter = NULL )
A DF with an extra col with a loesss smoothed version of InVar
DF we are adding the loess smooth col to
The column to be smoothed
The name of the new column
The span fed into loess smoothing. if it equals "guess" then it if found using parameterGuess
Prefilter using the value of a Filter col
data(Example_data, package = "Covid19Wastewater") head(loessSmoothMod(Example_data))
Run the code above in your browser using DataLab