proportion: Evaluate the proportion based on a grouped variable

View source: R/data_transformation.R

proportionR Documentation

Evaluate the proportion based on a grouped variable

Description

Evaluate the proportion based on a grouped variable

Usage

proportion(x, na_rm = TRUE)

Arguments

x

The vector to find the element-wise proportion

na_rm

Remove NA values before evaluating the proportion?

Value

A numeric vector that shows the element-wise proportion of x.


stuart-morrison/sumo documentation built on Jan. 2, 2025, 8:45 p.m.