symbolize: Convert numeric vectors to symbolic vectors.

Description Usage Arguments Value

View source: R/symbolize.R

Description

symbolize converts numeric vectors to symbolic vectors. It is a helper function for muti.

Usage

1

Arguments

xy

An n x 2 matrix or data.frame containing the two vectors of interest.

Value

An (n-2) x 2 matrix of integer symbols that indicate whether the i-th value, based on the i-1 and i+1 values, is a "trough" (=1), "decrease" (=2), "same" (=3), "increase" (=4), or "peak" (=5).


mdscheuerell/muti documentation built on June 20, 2020, 12:52 p.m.