ptable: Percentage Table

Description Usage Arguments Value Examples

Description

Construct a table of relative frequencies.

Usage

1
ptable(data, complete.obs = T, reduce = F)

Arguments

data

A data.frame.

complete.obs

A boolean value. Calculate percentages based on complete observations for each pair of variables. Default: TRUE.

reduce

A boolean value. For each variable pair, reduce the data to only changes before calculating the percentage table.

Value

A data.frame where the last three columns break down the relative frequency of variable X being larger than variable Y, vice versa, and when X == Y.

Examples

1
2
x <- data.frame(a = c(0, 0, 1, 4), b = c(1, 2, 1, 0))
ptable(x)

jsks/seqR documentation built on May 9, 2019, 12:48 p.m.