na.rm: if TRUE, NA values will be removed before calculating frequencies and proportions.
sort_by_decreasing_count: if TRUE, the output table will be sorted in the order of decreasing frequency.
sort_by_increasing_count: if TRUE, the output table will be sorted in the order of increasing frequency.
sort_by_decreasing_value: if TRUE, the output table will be sorted in the order of decreasing value.
sort_by_increasing_value: if TRUE, the output table will be sorted in the order of increasing value.
total_included: if TRUE, the output table will include a row for total counts.
sigfigs: number of significant digits to round to
round_digits_after_decimal: round to nth digit after decimal (alternative to sigfigs)
output_type: if output_type = "df", return a data.frame. By default, output_type = "dt", which will return a data.table.
Returns
if output_type = "dt", which is the default, the output will be a data.table showing the count and proportion (percent) of each element in the given vector; if output_type = "df", the output will be a data.frame showing the count and proportion (percent) of each value in the given vector.