tablette.groupwise: Generate a Group-wise Tablette

tablette.groupwiseR Documentation

Generate a Group-wise Tablette

Description

Generates a group-wise tablette. Calculates statistics for all factors and numerics, with and without grouping variables. Column names represent finest level of grouping, distinguished by attribute 'nest' (the values of higher groups). Column names include 'all' column for same statistics without groups. Result columns have corresponding attribute 'n'. 'lab' supplies a label attribute for each column where the RHS succeeds: by default appending 'n' to result column names. Column attributes 'label' and 'title' (highest priority) are substituted for column name, if present.

Usage

## S3 method for class 'groupwise'
tablette(x, ..., all = "All", lab = list(lab ~ name + "\n(N = " + n + ")"))

Arguments

x

groupwise

...

ignored

all

a column name for ungrouped statistics; can have length zero to suppress ungrouped column

lab

a list of formulas to generate column labels; \n is translated as <br> in html context

Value

'tablette', with columns for each combination of groups, and:

_tablet_name

observation identifier

_tablet_level

factor level (or special value 'numeric' for numerics)

_tablet_stat

the LHS of formulas in 'fac' and 'num'

All (or value of 'all' argument)

ungrouped results


tablet documentation built on Sept. 16, 2023, 1:08 a.m.