get_cuts: get cut points

Description Usage Arguments Value See Also

View source: R/get_cuts.R

Description

mainly used by smart_cut but can be used to compute cut point without assessing intervals to data points

Usage

1
2
get_cuts(x, i, what, expand, crop, closed = "left", open_end,
  optim_fun = NULL, width_fun = NULL)

Arguments

x

numeric vector to classify into intervals

i

numeric, character, or list, main parameter depending on what

what

character, choices can be abreviated

expand

logical, if TRUE cuts are added if necessary to cover min and max values

crop

logical, if TRUE intervals which go past the min or max values will be cropped

closed

character, which side of the intervals should be closed

open_end

include in last interval on open side the values which fall on the last cutpoint

optim_fun

optimization function (used if what = "group")

width_fun

left boundary function (used if what = "width")

Value

a vector of cut points

See Also

?smart_cut


moodymudskipper/cutr documentation built on Aug. 23, 2019, 7:15 p.m.