prop: Helper function to calculate proportions of categorical...

View source: R/helper.r

propR Documentation

Helper function to calculate proportions of categorical variables

Description

To be used as fun argument in custom.measure.

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.

Value

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


CICI documentation built on April 3, 2025, 7:08 p.m.