powered by
mtcars
Modified mtcars dataset so:
every column is labelled (using label attribute)
label
rownames are a character column named model
model
gear and cyl columns are considered as numerical factors
gear
cyl
vs and am columns are considered as character vector
vs
am
See mtcars for more informations on the original "Motor Trend Car Road Tests" dataset.
mtcars2
A data frame with 32 observations on 11 variables with labels.
library(crosstable) ct=crosstable(mtcars2, by=vs) ct as_flextable(ct)
Run the code above in your browser using DataLab