Proportions

Example Data 244 238
Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.
Help

prop.table

Description

This is really sweep(x, margin, margin.table(x, margin), "/") for newbies, except that if margin has length zero, then one gets x/sum(x).

Usage

prop.table(x, margin = NULL)

Arguments

x

table

margin

index, or vector of indices to generate margin for

Value

Table like x expressed relative to margin

Author(s)

Peter Dalgaard

Examples

m <- matrix(1:4, 2)
m
prop.table(m, 1)
Category

From Around the Site...

Title Authored on Content type
R Dataset / Package HistData / Snow.deaths2 March 9, 2018 - 1:06 PM Dataset
R Dataset / Package DAAG / pair65 March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Ecdat / incidents.byCountryYr March 9, 2018 - 1:06 PM Dataset
R Dataset / Package rpart / car90 March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HistData / CushnyPeeblesN March 9, 2018 - 1:06 PM Dataset