tablette.groupwise | R Documentation |
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 class 'groupwise'
tablette(x, ..., all = "All", lab = list(lab ~ name + "\n(N = " + n + ")"))
x |
groupwise |
... |
formulas of the form lab ~ NULL will remove elements of 'lab' |
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; each formula in succession is applied to each column |
'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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.