# FindTriples: Find "triples" of vector elements. In IIS: Datasets to Accompany Wolfe and Schneider - Intuitive Introductory Statistics

## Description

`FindTriples` returns the number of left triples, right triples, and triples that are neither left nor right for the given vector.

## Usage

 `1` ```FindTriples(z) ```

## Arguments

 `z` Numeric vector

## Details

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.

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10``` ```FindTriples(1:10) FindTriples(rnorm(20)) ## Not run: FindTriples("a") ## End(Not run) ```

IIS documentation built on May 2, 2019, 6:24 a.m.