table_decreasing_hybrid | R Documentation |
This function generates a frequency table of the input vector vec
and displays the table
sorted by frequency and by a set of specified values. It handles NA values.
table_decreasing_hybrid(vec, first_elements = FALSE, useNA = "ifany")
vec |
A vector. The vector for which the frequency table is to be generated. |
first_elements |
Logical. Should the table be sorted in decreasing order? Default: |
useNA |
A string. Specifies how to handle NA values. Can be "ifany", "always", or "no".
Default: |
A frequency table sorted.
vec <- c(1, 2, 2, NA, 3, 3, 3)
table_decreasing_hybrid(vec)
table_decreasing_hybrid(vec, first_elements = "1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.