make_anomalies: make anomaly features

Description Usage Arguments Value See Also Examples

View source: R/generate_signal.R

Description

make anomaly features of varying number that randomly increase the signal by a specific volume

Usage

1
make_anomalies(x, n = 0.01, strength = 1)

Arguments

x

a tibble from generate_signal

n

the percentage of the data to insert anomalies into as a numeric <= 1, Default: 0.01

strength

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

Value

a tibble

See Also

sample,pull,mutate,case_when

Examples

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

## End(Not run)

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