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.
# S3 method for groupwise
tablette(x, ..., all = "All", lab = list(lab ~ name + "\n(N = " + n + ")"))
'tablette', with columns for each combination of groups, and:
observation identifier
factor level (or special value 'numeric' for numerics)
the LHS of formulas in 'fac' and 'num'
ungrouped results
groupwise
ignored
a column name for ungrouped statistics; can have length zero to suppress ungrouped column
a list of formulas to generate column labels; \n is translated as <br> in html context