.BG
.FN cut
.TL
Create Category by Cutting Continuous Data
.CS
cut(x, breaks, labels)
.AG x
data vector.
Missing values (`NA's) are allowed.
.AG breaks
either a vector of breakpoints, or the number of equal-width
intervals into which the data in `x' should be cut.  If a
vector of breakpoints is given, the category will have
`length(breaks)-1' groups, corresponding to data in the intervals between
successive values in `breaks' (after `breaks' is sorted).
Data less than or equal to the first breakpoint or greater than the
last breakpoint is returned as `NA'.
.AG labels
character vector of labels for the intervals.  Default is to
encode the breakpoints to make up interval names (if `break'
is a vector), or to use the names `Range 1', etc., if
`breaks' is a single integer.
.RT
a category as long as `x'
telling which group each point in `x'
belongs to, along with
an attribute, `levels', which is a
vector of character names for each group.
.SA
`category', `table', `tapply'.
.EX
cut(x,3)   # cut into 3 groups
cut(x, breaks)  # cut based on given breakpoints
cut(x, pretty(x))   # approx 5 "pretty" intervals
.KW category
.WR
