Learn R Programming

Momocs (version 1.1.6)

table: Cross-tabulates objects

Description

Simply extends base table for a more convenient use on $fac slot.

Usage

table(...)

# S3 method for default table(...)

# S3 method for Coo table(...)

# S3 method for Coe table(...)

# S3 method for PCA table(...)

# S3 method for LDA table(...)

Arguments

...
a list of, first, a Momocs object (Coo, Coe, PCA, etc.), then, column names in the $fac slot. If not specified, returns a table on the entire $fac data.frame

Examples

Run this code
data(bot)
table(bot)
data(olea)
table(olea, "var", "domes")
table(olea)

Run the code above in your browser using DataLab