bytable: Produces a nice summary table by groupings

Description Usage Arguments Value See Also Examples

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

...

other arguments to pass to by

Value

data.frame

See Also

latex.table.by

Examples

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

gsk3/taRifx documentation built on May 17, 2019, 8:55 a.m.