step_harmonic.Rd`step_harmonic` creates a *specification* of a recipe step for harmonics (sin and cos terms).
step_harmonic(recipe, ..., role = "harmonic", trained = FALSE, freq = 1, prefix = "harmonic_", default = NA, columns = NULL, skip = FALSE, id = rand_id("harmonic"))
| recipe | A recipe object. The step will be added to the sequence of operations for this recipe. |
|---|---|
| ... | One or more selector functions to choose which variables are affected by the step. See [selections()] for more details. For the `tidy` method, these are not currently used. |
| role | Defaults to "harmonic" |
| trained | A logical to indicate if the quantities for preprocessing have been estimated. |
| freq |
|
| prefix | A prefix for generated column names, default to "harmonic_". |
| default | Passed to |
| columns | A character string of variable names that will
be populated (eventually) by the |
| skip | A logical. Should the step be skipped when the
recipe is baked by |
| id | A character string that is unique to this step to identify it. |
An updated version of `recipe` with the new step added to the sequence of existing steps (if any). For the `tidy` method, a tibble with columns `terms` which is the columns that will be affected and `holiday`.
`step_harmonic` calculates the Earth tide harmonics
[step_earthtide()] [recipe()] [prep.recipe()] [bake.recipe()]