Description Usage Arguments Value Author(s) Examples

`select.range`

accepts two vectors of paired observations and
returns a vector of observations from `data`

. The observations
returned are those for which the paired values in `groupvec`

are
within the range specified by `min`

and `max`

.
NOTE: The in-range condition is *greater than or equal to* `min`

and *less than* `max`

. This allows contiguous ranges to be
specified without returning the same value in two sets.

1 | ```
select.range(data, groupvec, min, max)
``` |

`groupvec` |
A vector of observations to be used for grouping. |

`min` |
The minimum value of the range. |

`max` |
The maximum value of the range. |

`data` |
A numeric vector of observations. |

The subset of observations from `data`

is returned invisibly.

??

1 2 3 | ```
testvec <- c(2.1,4.3,3.2,5.1,4.2,5.7,7.1,6.5,4.1,5,6,8,7,9 ,8 ,NA,NA)
agevec <- c(10 ,13 ,14 ,25 ,29 ,32 , 34, 45, 48, 55, 62,67,69,70,74)
select.range(testvec,agevec,25,34.5) # 5.1 4.2 5.7 7.1
``` |

cwhmisc documentation built on Sept. 10, 2017, 1:02 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.