Regroup Values According to Configuration
Usage
regroupedValues(
values,
config = NULL,
labels = "labels1",
to.factor = FALSE,
to.numeric = TRUE,
dbg = TRUE
)
Arguments
- values
vector of values
- config
configuration (list) describing how to regroup. If the list contains an element
breaks
the functiongroupByBreaks
is called to group values together that belong to the same intervals that are defined by the breaks. Otherwise the list must contain an elementvalues
and an element of the name given inlabels
(default: "labels1"). These are given to the functionregroup
that performs a "value to label"-regrouping.- labels
default: "labels1"
- to.factor
if
TRUE
the new values are converted tofactor
. The default isFALSE
.- to.numeric
(default:
TRUE
, overridesto.factor
!), passed toregroup
- dbg
if
TRUE
(default) debug messages are shown