tab_counts_one_grouped | R Documentation |
Output frequencies cross tabulated with a grouping column
tab_counts_one_grouped(
data,
col,
cross,
prop = "total",
percent = TRUE,
values = c("n", "p"),
labels = TRUE,
clean = TRUE,
...
)
data |
A tibble. |
col |
The column holding factor values. |
cross |
The column holding groups to split. |
prop |
The basis of percent calculation: "total" (the default), "cols", or "rows". |
percent |
Proportions are formatted as percent by default. Set to FALSE to get bare proportions. |
values |
The values to output: n (frequency) or p (percentage) or both (the default). |
labels |
If TRUE (default) extracts labels from the attributes, see codebook. |
clean |
Prepare data by data_clean. |
... |
Placeholder to allow calling the method with unused parameters from tab_counts. |
A volker tibble.
library(volker)
data <- volker::chatgpt
tab_counts_one_grouped(data, adopter, sd_gender)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.