Proportions

Example Data 244 238 1
Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.
Category
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)
R Output Dataset Referenced Date
Proportions Example Data May 29, 2017
Proportions Example Data May 29, 2017
Proportions Example Data May 29, 2017
Proportions Gender and Politics May 29, 2017
Proportions stent365 May 29, 2017
Title Authored on Content type
R Dataset / Package DAAG / psid2 March 9, 2018 - 1:06 PM Dataset
R Dataset / Package DAAG / nihills March 9, 2018 - 1:06 PM Dataset
OpenIntro Statistics Dataset - cia_factbook August 9, 2020 - 12:25 PM Dataset
R Dataset / Package texmex / liver March 9, 2018 - 1:06 PM Dataset
R Dataset / Package car / Soils March 9, 2018 - 1:06 PM Dataset