make_trend: make trend features

Description Usage Arguments Value Examples

View source: R/generate_signal.R

Description

make trend features that start at a specific interval that increase or decrease the signal linearly by a specific strength

Usage

1
make_trend(x, strength = 10, start = NA)

Arguments

x

a tibble from generate_signal

strength

the strength of the trend in the signal as a numeric, Default: 1

start

interval to start on as an integer, Default: NA

Value

a tibble

Examples

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

## End(Not run)

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