| count_table {Countr} | R Documentation |
Summary of a count variable
Description
Summary of a count variable.
Usage
count_table(count, breaks, formatChar = FALSE)
Arguments
count |
integer, observed count value for every individual in the sample. |
breaks |
integer, values at which the breaks should happen. The function
will compute the observed frequency in |
formatChar |
logical, should the values be converted to character and formatted? |
Details
The function does a similar job to table() with more flexibility
introduced by the argument breaks. The user can decide how to break
the count values and decide to merge some cells if needed.
Value
matrix with 2 rows and length(breaks) columns. The
column names are the cells names. The rows are the observed frequencies
and relative frequencies (probabilities).
[Package Countr version 3.5.8 Index]