Multiway: 'Multiway'

View source: R/multiway.R

MultiwayR Documentation

Multiway

Description

Creates a crosstab by aggregating numeric data over factors.

Usage

Multiway(
  rows,
  columns = NULL,
  numeric = NULL,
  numeric.statistics = NULL,
  numeric.statistic = "Mean",
  hide.empty.rows = FALSE,
  hide.empty.columns = FALSE,
  subset = NULL,
  weights = NULL
)

Arguments

rows

A data.frame of variables to show in the rows of the table.

columns

An optional data.frame of variables to show in the columns of the table.

numeric

An optional numeric variable, which is used to compute the mean in the cells of the table.

numeric.statistics

One or more of "Mean", "Minimum", "Maximum", "Sum". The statistic to be computed when rows and columns have been specified. If columns is not supplied then can be a vector containing any of those four values. Ignored if numeric is not supplied.

numeric.statistic

Deprecated in favour of numeric.statistics, provided for backwards compatibility. Ignored if numeric is not supplied or numeric.statistics is non-NULL.One of "Mean", "Minimum", "Maximum", "Sum". The statistic to be computed when rows and columns have been specified. If columns is not supplied then can be a vector containing any of those four values (defaults to all four).

hide.empty.rows

Hide rows containing no data.

hide.empty.columns

Hide columns containing no data.

subset

The sub-group to include in the analysis.

weights

The sampling or replication weights.


NumbersInternational/flipStatistics documentation built on Feb. 26, 2024, 5:40 a.m.