Description Usage Arguments Value See Also
View source: R/rmodel_datamanipulation.R
r.segment.target
1 | r.segment.target(dades, segmentacion, target, targetValue = NULL)
|
dades |
dataframe |
segmentacion |
Array of strings. Names of the columns to create segmentation. Those variables must be categorical. |
target |
String. Name of the target column to calculate means for each segment. If targetValue is provided, then means are not calculated, and percentatge of counting targetValue is provided instead. |
targetValue |
Numeric or Categorical. Value of target column to calculate counts instead of means. |
An array of percentages of target for each segmentation.
r.binning
r.segment
r.segment.target
r.segment.dataframe
r.segment.target.table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.