Description Usage Arguments Details Examples
FindTriples
returns the number of left triples, right triples, and triples that are neither left nor right for the given vector.
1 | FindTriples(z)
|
z |
Numeric vector |
Triples are formed by taking any three data values from a vector and order this triple of data values from smallest to largest. If the middle ordered item is closer to the smallest than to the largest, the triple is said to be a right triple. If the middle ordered item is closer to the largest, the triple is said to be a left triple. If the middle ordered value is exactly halfway between the other two, the triple is neither right nor left. This function will do the necessary computations and return the number of each type of triple.
1 2 3 4 5 6 7 8 9 10 | FindTriples(1:10)
FindTriples(rnorm(20))
## Not run:
FindTriples("a")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.