lhcut: Cut values and create category

Description Usage Arguments

View source: R/collectedfunctions.R

Description

Cut values and create category

Usage

1
2
lhcut(data, var, breaks, labels = "fancy", right = F,
  newvar = "default")

Arguments

data

Data frame

var

Variable to be cut

breaks

break points

labels

category name. If fancy, the categories will be created according to the break points

right

If false, right value will be exclusive @param newvar vector name of the categorical. If default, the var with suffix"cat" will be used as default name


leonpheng/lhtool documentation built on Dec. 16, 2019, 3:52 a.m.