concat.tbl.list: Concatenate a list of tables

Description Usage Arguments Details Value Author(s) Examples

View source: R/clusterluts.R

Description

Tables are The individual tables—assumed to be output from table—in tbl.list are split into their name and value part which are combined to 2-row matrices via rbind. Those matrices are in turn concatenated via cbind.

Usage

1
concat.tbl.list(tbl.lst, idx = FALSE, ...)

Arguments

tbl.lst

list of tables

idx

whether or not to include "index" information

...

ignored

Details

Parameter idx indicates whether or not to include "index" information, i.e., indicate which table an entry came from (off by default)

Names of the sub-tables are assumed to be numeric as is the case for the table lists

Value

matrix corresponding to the cbind-concatenation of tbl.lst

Author(s)

Benno Pütz puetz@psych.mpg.de

Examples

1
2
3
table.list <- list(table(sample(1:3, 10, TRUE)), table(sample(7:10, 10, TRUE)))
concat.tbl.list(table.list)
concat.tbl.list(table.list, idx = TRUE)

bennop/clusterLUTs documentation built on Nov. 21, 2020, 9:07 a.m.