applyCuts {arc}R Documentation

Apply Cut Points to Data Frame

Description

Applies cut points to input data frame.

Usage

applyCuts(df, cutp, infinite_bounds, labels)

Arguments

df

input data frame.

cutp

a list of vectors with cutpoints (for more information see applyCut).

infinite_bounds

a logical indicating how the bounds on the extremes should look like (for more information see applyCut)

labels

a logical indicating whether the bins of the discretized data should be represented by integer codes or as interval notation using (a;b] when set to TRUE.

Value

discretized data. If there was no discretization specified for some columns, these are returned as is.

See Also

applyCut

Examples

  applyCuts(datasets::iris, list(c(5,6), c(2,3), "All", NULL, NULL), TRUE, TRUE)


[Package arc version 1.3 Index]