stratify: Stratify by a Variable

Description Usage Arguments Details

View source: R/rrexplore.r

Description

Stratify data into zones using specified midpoints.

Usage

1
stratify(x, midpoints, ...)

Arguments

x

Vector of values.

midpoints

Vector of midpoints or cut points to stratify x by. min(x) and max(x) are automatically included.

...

Other arguments to pass to cut().

Details

This function is basically a wrapper for cut(), but requires the cuts be directly specified and that include.lowest = TRUE. Every element of x is therefore guaranteed to be included in one interval.


mkoohafkan/rremat documentation built on July 3, 2021, 12:06 p.m.