proportions: Proportions

View source: R/dataframes.r

proportionsR Documentation

Proportions

Description

Calculate proportions for a given data.frame, this extends proportions to work on data.frames.

Usage

proportions(x, margin = NULL)

Arguments

x

a data.frame containing only numeric entries

margin

a vector giving the margins to split by. E.g., for a data.frame '1' indicates rows, '2' indicates columns.


lukehannan/lumisc documentation built on July 5, 2025, 5:30 a.m.