add_seasonality: add seasonality to a signal

Description Usage Arguments Value See Also Examples

View source: R/generate_signal.R

Description

add seasonality to a signal of a specific strength, that can be high in summer or high in winter, that is exactly a year long

Usage

1
add_seasonality(x, strength = 5, invert = FALSE)

Arguments

x

a tibble from generate_signal

strength

the strength of the change in a seasonal cycle as a numeric, Default: 5

invert

if the signal should be higher in summer than it is in winter as a booleen, Default: FALSE

Value

a tibble

See Also

mutate

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 generate_signal() %>%  add_seasonality()
 }

## End(Not run)

surple-energy/rsatz documentation built on Feb. 29, 2020, 12:49 a.m.