Description Usage Arguments Author(s) See Also
Creates a frequency table or data frame.
1 2 3 4 5 6 7 8 9 | freq(x, weighs = NULL, breaks = graphics::hist(x, plot = FALSE)$breaks,
digits = 3, include.lowest = TRUE, order = c("desc", "asc", "level",
"name"), perc = FALSE, useNA = c("no", "ifany", "always"), ...)
## Default S3 method:
freq(x, weighs = NULL, breaks = graphics::hist(x, plot =
FALSE)$breaks, digits = 3, include.lowest = TRUE, order = c("desc",
"asc", "level", "name"), perc = FALSE, useNA = c("no", "ifany", "always"),
...)
|
x |
A vector of values for which the frequency is desired. |
weighs |
A vector of weights. |
breaks |
one of: 1) a vector giving the breakpoints between histogram cells; 2) a function to compute the vector of breakpoints; 3) a single number giving the number of cells for the histogram; 4) a character string naming an algorithm to compute the number of cells (see 'Details'); 5) a function to compute the number of cells. |
digits |
The number of significant digits required. |
include.lowest |
Logical; if |
order |
The order method. |
perc |
logical; if |
useNA |
Logical; if |
... |
Additional arguements (currently ignored) |
Daniel Marcelino, dmarcelino@live.com.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.