| iris2 | R Documentation |
iris datasetModified iris dataset so:
every column is labelled (using label attribute)
Species column is considered as factor
See iris for more informations on the original "Edgar Anderson's Iris Data" dataset.
iris2
A data frame with 150 observations on 5 variables with labels.
library(dplyr)
iris2 = iris %>%
expss::apply_labels( #I also could have used [import_labels] or even `labelled::set_variable_labels()`
Species = "Specie",
Sepal.Length = "Length of Sepal",
Sepal.Width = "Width of Sepal",
Petal.Length = "Length of Petal",
Petal.Width = "Width of Petal"
) %>%
as_tibble()
library(crosstable)
ct=crosstable(iris2, by=Species)
ct
as_flextable(ct)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.