Learn R Programming

crosstable (version 0.3.2)

mtcars2: Modified mtcars dataset

Description

Modified mtcars dataset so:

  • every column is labelled (using label attribute from expss package, compatible with Hmisc package)

  • gear and cyl columns are considered as numerical factors

  • vs and am columns are considered as character vector

See mtcars for more informations on the original "Motor Trend Car Road Tests" dataset.

Usage

mtcars2

Arguments

Format

A data frame with 32 observations on 11 variables with labels.

Examples

Run this code
# NOT RUN {
library(crosstable)
ct=crosstable(mtcars2, by=vs)
ct
as_flextable(ct)
# }

Run the code above in your browser using DataLab