powered by
Calculates and sort the count and relative frequency of categories.
FreqTab(data = NULL, variables = NULL, rnd = 3, decreasing = TRUE, use.na = FALSE)
data.frame with categorical variables.
data.frame
name or position of categorical variables. If more than one variable is provided, contingency frequencies are calculated.
the number of decimal places (round) or significant digits (signif) to be used.
logical. If TRUE, frequencies will be sorted in decreasing order, if FALSE, they will be sorted in increasing order.
logical
TRUE
FALSE
logical. If FALSE (default), missing values are omitted.
data.frame.
Baquero, O. S., Marconcin, S., Rocha, A., & Garcia, R. D. C. M. (2018). Companion animal demography and population management in Pinhais, Brazil. Preventive Veterinary Medicine. http://oswaldosantos.github.io/capm
table and sort.
# NOT RUN { data(cluster_sample) FreqTab(cluster_sample$number_of_dogs) data(dogs) FreqTab(dogs, c("species", "sex")) # }
Run the code above in your browser using DataLab