View source: R/dataFunctions.R
fp_table | R Documentation |
One and two-way summaries of frequencies, percentages and totals.
fp_table(
.data,
colvar,
rowvar = NULL,
transpose = FALSE,
useNA = c("no", "ifany", "always")
)
.data |
A dataframe or tibble. |
colvar |
Character string naming the factor variable for tabulation. |
rowvar |
(Optional) string naming factor the row variable for cross-tabulation. |
transpose |
Logical specifying whether to transpose the result. |
useNA |
One of |
A dataframe containing frequencies and percentages. The columns
contain frequecies and row percentages. A two-way summary is produced if
rowvar is specified. Rows and columns can be reversed by specifying
transpose = TRUE
. The result is uglier than a hairless cat, but can
easily be converted to useful tabular formats with some custom recoding.
Steve Gutreuter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.