View source: R/transform-nejm.R
| summarize_nejm_vert | R Documentation | 
Given a row and column object from the parser apply a Kruskal test and output the results vertically (#Categories+1) X (N, Summary, Statistic)
summarize_nejm_vert( table, row, column, cell_style, collapse_single = TRUE, pformat = NULL, msd = FALSE, test = FALSE, quant = c(0.25, 0.5, 0.75), ... )
table | 
 The table object to modify  | 
row | 
 The row variable object to use (categorical)  | 
column | 
 The column variable to use (numerical)  | 
cell_style | 
 list; cell styling functions  | 
collapse_single | 
 logical; default TRUE. Categorical variables with a two values collapse to single row.  | 
pformat | 
 numeric, character or function; A formatting directive to be applied to p-values  | 
msd | 
 logical; include msd in summary  | 
test | 
 logical; include statistical test results  | 
quant | 
 numeric; vector of quantiles to include. Should be an odd number since the middle value is highlighted on display.  | 
... | 
 absorbs additional arugments. Unused at present.  | 
The modified table object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.