r.segment.dataframe: r.segment.dataframe

Description Usage Arguments Value See Also

View source: R/rmodel_datamanipulation.R

Description

r.segment.dataframe

Usage

1
2
3
r.segment.dataframe(dades, segmentacion, target = NULL, targetValue = NULL,
  prefix = "", link = " ", labelText = TRUE, labelNumeric = FALSE,
  missing = NA)

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

A dataframe with segmentation as rows with some extra statistics columns.

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.