fquantile_byid | R Documentation |
This function computes quantiles for subsets of a numeric vector defined by an ID vector. The input vector must be sorted by the ID vector. Optionally, the results can be rounded.
fquantile_byid(x, q, id, rounding = FALSE, na_rm = TRUE)
x |
A numeric vector from which quantiles are computed. |
q |
A numeric vector of probabilities for which quantiles are desired. |
id |
A string vector representing group identifiers. The vector |
rounding |
Logical flag indicating whether to round the quantiles (default is false). |
na_rm |
Logical flag indicating whether to remove NA values (default is true). |
A list where the first element is a vector of group IDs and subsequent elements are numeric vectors of computed quantiles for each group.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.