powered by
sgolaySmoothMod Add a column of the smoothed values using sgolayfilt
sgolaySmoothMod(DF, InVar, OutVar, poly = 5, n = "guess", Filter = NULL)
DF with an extra col with a sgolayfilt smoothed version of InVar
dataframe containing the columns specified below
The column to be smoothed
The name of the new column
The degree of the polynomial fit
The number of points per polynomial fed into sgolayfilt. if it equals "guess" then it is found using parameterGuess
Prefilter using the value of a Filter col
data(Example_data, package = "Covid19Wastewater") Example_data <- Example_data[Example_data$site == "Green Bay",] Covid19Wastewater::sgolaySmoothMod(WasteWater_data,"N1","sgolayN1")
Run the code above in your browser using DataLab