peak_to_poly {forceR} | R Documentation |
Convert Time Series to Polynomial
Description
Convert Time Series to Polynomial
Usage
peak_to_poly(df, coeff, path.data = NULL, show.progress = FALSE)
Arguments
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: |
Value
A list with the length equal to the number of unique species within df
containing the fitted models.
Examples
# 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
[Package forceR version 1.0.20 Index]