| cheapr_table | R Documentation |
This is not a one-to-one copy of base::table() as some behaviours differ.
It is more flexible as it accepts inputs such as data frames and
vctrs_rcrd objects.
cheapr_table(
...,
names = TRUE,
order = FALSE,
na_exclude = FALSE,
classed = FALSE
)
counts(x, sort = is.factor(x))
table_(..., names = TRUE, order = FALSE, na_exclude = FALSE, classed = FALSE)
... |
|
names |
Should level names be kept? Default is |
order |
Should result be ordered by level names? Default is
|
na_exclude |
Should |
classed |
Should a |
x |
A vector. |
sort |
Should groups be sorted? Default is |
cheapr_table() tries to match the behaviour of table() where possible.
counts() is an alternative that returns a data.frame of unique keys and
counts.
A named integer vector if one object is supplied, otherwise an array.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.