test_tex"

knitr::opts_chunk$set(echo = TRUE)
library(tidyverse)
library(magrittr)
library(kableExtra)
library(DescrTab2)
library(knitr)
descr(iris)

descr(
  iris,
  "Species",
  group_labels = list(setosa = "My custom group label"),
  var_options = list(Sepal.Length = list(label = "My custom variable label"))
)

descr(
  iris,
  "Species",
  group_labels = list(setosa = "My custom group label"),
  var_options = list(Sepal.Length = list(label = "My custom variable label")),
  format_options=list(caption="Test Caption")
)

Tooth2 <- ToothGrowth
Tooth2$categorical <- factor(sample(c("a", "b"), nrow(Tooth2), TRUE))
descr(Tooth2, "supp")


Try the DescrTab2 package in your browser

Any scripts or data that you put into this service are public.

DescrTab2 documentation built on Sept. 6, 2022, 9:05 a.m.