peak_to_poly | R Documentation |
Convert Time Series to Polynomial
peak_to_poly(df, coeff, path.data = NULL, show.progress = FALSE)
df |
The resulting tibble of the function |
coeff |
A numerical value indicating the number of coefficients the model used to fit on the time series data should have. |
path.data |
A string character defining where to save the results as
|
show.progress |
A logical value indicating if progress should be
printed to the console. Default: |
A list with the length equal to the number of unique species within df
containing the fitted models.
# Using the forceR::peaks.df.100.avg dataset: # define the number of coefficients the polynomial models should have number_of_coeffs = 4 # convert curves to polynomial models models <- peak_to_poly(df = forceR::peaks.df.100.avg, coeff = number_of_coeffs) models
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.