Learn R Programming

CICI (version 0.9.7)

prop: Helper function to calculate proportions of categorical variables

Description

To be used as fun argument in custom.measure.

Value

A scalar numeric value of the proportion of categ values in vec

Arguments

vec

A vector with either numeric, logical or string elements.

categ

A numeric, logical or string vector of length 1, that refers to a particular category of vec.