Description Usage Arguments Details Value See Also Examples
get_vector_cutpoints returns a numeric vector giving the unique
cutpoints of a variable that has been discretized using
vector_bin- more generally, using cut
and any
functions that depend on cut
1 |
v |
vector to get cutpoints from |
This function is provided for convienience, and is built to work with the exact format for discretized variables that is used by the cut family. Hence it will work for cut, cut_number/cut_interval, and any of the binning functions from modellingTools, but it is not guaranteed to work for arbitrary factors with numeric levels
a vector containing the unique cutpoints in v
cut
, cut_number
,
cut_interval
, vector_bin
Other discretization: binned_data_cutpoints
,
simple_bin
, vector_bin
1 2 | x <- cut(rnorm(100),c(-1,0,1))
get_vector_cutpoints(x) # -1, 0, 1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.