Description Usage Arguments x_type
View source: R/haeufigkeiten.R
Summarise grouped data
1 | grouped_data(breaks, x, x_type = c("x", "h_j", "f_j"), n)
|
breaks |
A numeric vector with length n + 1 where n is the number of
groups. Group i is the right-open interval [ |
x |
A numeric vector. See section |
x_type |
See section |
n |
Sample size (only used if |
Based on x_type
the argument x
is treated as follows:
x
: Values to be grouped.
h_j
: Absolute frequencies of each group. Then
length(x) == length(breaks) - 1
.
f_j
: Relative frequencies of each group. Then
length(x) == length(breaks) - 1
. In this case the sample size n
has
to be specified.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.