f_table | R Documentation |
Prepares 2D frequency table.
f_table(
df.input,
c.ver,
c.hor = NULL,
c.useNA = "ifany",
c.type = "abs",
n.round = 1,
b.warning = TRUE
)
df.input |
Data frame containing features c.ver (and c.hor) |
c.ver |
Feature name to pivot vertically. |
c.hor |
Feature name to pivot horizontally. If provided this will result in a 2D frequency table, and when not provided the result will be a 1D frequency table (default: NULL). |
c.useNA |
How to deal with NAs. Options are: "ifany", "no" "always" (default: "ifany"). |
c.type |
Type result. Options are: "abs", "rel" (default: "abs"). |
n.round |
Rounding the numbers (default: 1). |
b.warning |
Should warnings be shown? (default: TRUE). |
-
A 2D (or 1D) frequency table.
Pieter Overdevest
f_table(
df.input = mtcars,
c.ver = "gear",
c.hor = "am",
c.useNA = "ifany",
c.type = "abs",
n.round = 1,
b.warning = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.