r.segment.target: r.segment.target

Description Usage Arguments Value See Also

View source: R/rmodel_datamanipulation.R

Description

r.segment.target

Usage

1
r.segment.target(dades, segmentacion, target, targetValue = NULL)

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.

See Also

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


rocalabern/rmodel documentation built on May 27, 2019, 12:14 p.m.