Description Usage Arguments Examples
For the D4 Method, we need to have four consecutive changes, the ends of which are positive, and at most one of the two middles is negative. This function takes the changes and returns a logical vector of TRUEs when at most one of the two middles is negative.
1 |
dx |
A sequential change of SWE values. This is a vector object. |
1 2 | x <- c(1, -2, -1, 0, 0, -4, 5, 0, 3, -1, 0, -2, -1, 3)
rdailychange:::middle_negative_test(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.