| freq | R Documentation |
Count the occurrences of values in a column, optionally within groups.
freq(data, column, by = NULL, prop = FALSE, sort = TRUE, ...)
data |
A data frame, or a single path to a delimited text file. In file mode the second argument is taken as the grouping column(s). |
column |
Name of the column to tabulate. |
by |
Optional grouping column or columns. |
prop |
Whether to include proportions. |
sort |
Whether to sort rows by descending frequency. |
... |
In file mode, reader options such as |
A basetable containing frequencies, and proportions when requested.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.