Learn R Programming

crosstable (version 0.8.0)

mtcars2: Modified mtcars dataset

Description

Modified mtcars dataset so:

  • every column is labelled (using label attribute)

  • rownames are a character column named model

  • 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
library(crosstable)
ct=crosstable(mtcars2, by=vs)
ct
as_flextable(ct)

Run the code above in your browser using DataLab