aggrtab: function aggrtab

View source: R/aggrtab.R

aggrtabR Documentation

function aggrtab

Description

function aggrtab

Usage

aggrtab(A, d, micro = TRUE, nin = "n", nout = "n")

Arguments

A

A data frame representing a micro dataset or a frequency count hypercube. The (first) columns define the variables. If A is a hypercube the last column contains the number of units in each cell.

d

A list d[[j]] whose elements are vectors of variable names from A defining marginal tables/cubes of A that we are interested in.

micro

Logical. TRUE if A is a micro dataset (default). FALSE if A i a frequency count hypercube.

nin

Name of count variable if A is a hypercube. Default name: "n".

nout

Name of the frequency count variable in the output tables.

Value

D = D[[j]] of marginal tables/cubes of A spesified by the list d = d[[j]] generated by aggregating over cells in A.

Author(s)

Johan Heldal, November 2017


SmallCountRounding documentation built on Nov. 16, 2022, 5:11 p.m.