bytable: Produces a nice summary table by groupings

Description Usage Arguments Value See Also Examples

View source: R/Rfunctions.R

Description

produces a nice summary table by groupings, suitable for use with latex.table.by().

Usage

1
2
  bytable(datavec, indices, ops = c(quote(mean)),
    ops.desc = list(mean = "Mean"), na.rm = TRUE)

Arguments

datavec

Vector to be analyzed

indices

Indices should be a list of grouping vectors, just like you would pass to -by-, but with sensible names for each vector

ops

Vector of quote'd operations to perform

ops.desc

Vector of length length(ops) containing the column labels for the operations.

na.rm

Remove NAs or not

Value

data.frame

See Also

latex.table.by

Examples

1
bytable(runif(100),indices=list(rep(c('a','b'),50)))

taRifx documentation built on April 14, 2020, 6:27 p.m.

Related to bytable in taRifx...