tavolo.matrix {catfun}R Documentation

Create 2 x k frequency tables

Description

Helper function for creating 2 x k frequency tables.

Usage

## S3 method for class 'matrix'
tavolo(df, dnn = NULL, rev = c("neither", "rows",
  "columns", "both"), ...)

Arguments

df

a 2 x k frequency matrix.

dnn

optional character vector of dimension names.

rev

character string indicating whether to switch row or column order, possible options are "neither", "rows", "columns", or "both". The default is "neither".

...

further arguments passed to or from other methods.

Value

tab

2 x k frequency table

Examples

tavolo(matrix(c(23, 45, 67, 12), nrow = 2, ncol = 2), rev = "both")

[Package catfun version 0.1.4 Index]