| ch_tr_sign | R Documentation | 
Converts MK (or other) slopes to integers 1-2-3 (negative, none, positive). These indices can be used to indicate trend direction.
ch_tr_sign(x, offset = 2)
| x | an array of slopes | 
| offset | the amount of shift to make values positive integers, default is 2. | 
Returns an array of indices (1, 2, 3)
Paul Whitfield
 mkin <- c( -0.23, 0.34, 0.0, .033, -0.55)
 mkout <- ch_tr_sign(mkin)
 # 1 3 2 3 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.