r.segment.target.table: r.segment.target.table

Description Usage Arguments Value See Also

View source: R/rmodel_datamanipulation.R

Description

r.segment.target.table

Usage

1
2
r.segment.target.table(dades, segmentacion, target, targetValue = NULL,
  prefix = "Grupo", link = " ", labelText = FALSE, labelNumeric = FALSE)

Arguments

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.

Value

An array of percentages of target for each segmentation with labels.

See Also

r.binning r.segment r.segment.target r.segment.dataframe r.segment.target.table


rocalabern/rmodel documentation built on May 25, 2017, 7:41 a.m.