table2: Format and sort a contigency table

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Formats the output of table into an matrix ordered by total counts in descending order

Usage

1
table2(..., n = 10)

Arguments

...

one or more objects passed to table

n

number of rows to display, default 10

Details

Currently limited to 1 or 2 dimensional table arrays.

Value

A matrix, sorted by total counts in descending order. Any rows or columns with zero counts are also removed from the matrix.

Author(s)

Chris Stubben

See Also

table

Examples

1
2
3
4
5
6
7
data(euks)
table(euks$subgroup)
table2(euks$subgroup)
## to display all rows, use NA or a large number...
table2(euks$subgroup, n=100)
# 2-d table
table2(euks$group, year(euks$released))

cstubben/genomes2 documentation built on May 14, 2019, 12:25 p.m.