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.


luhann/lumisc documentation built on Jan. 26, 2025, 5:16 a.m.