View source: R/tabledesc_function.R
tabledesc | R Documentation |
Function for generating a data.frame with averages or other descriptive measures grouped by a categorical variable
tabledesc(data, fun = mean)
data |
data.frame containing the first column with the categorical variable and the remaining response columns |
fun |
Function of descriptive statistics (default is mean) |
Returns a data.frame with a measure of dispersion or position from a dataset and separated by a factor
Gabriel Danilo Shimizu, shimizu@uel.br
Leandro Simoes Azeredo Goncalves
Rodrigo Yudi Palhaci Marubayashi
data(pomegranate)
tabledesc(pomegranate)
library(knitr)
kable(tabledesc(pomegranate))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.