Description Usage Arguments Value
Useful when piping a grouped data frame to dplyr::tally()
and then converting that into a contingency table before piping it into
beta_binom
, or flipping rows and columns in between those steps.
Works for data frames grouped by a single variable only, to create tables
with more than 2 dimensions, use xtabs
.
1 2 3 4 5 | make_table(df)
flip_cols(x)
flip_rows(x)
|
df |
A data.frame where the first column is the group column and the rest are counts of outcomes. |
x |
A 2-by-2 table produced by |
A 2-by-2 table.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.