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))
... |
|
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()
alternatively works only for atomic vectors and
is faster, returning a data.frame
of 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.