Tutor

Study Notes: gt package and format table

A introduction about gt package is here knitr::opts_chunk$set(echo = TRUE, warning = FALSE, message = FALSE, fig.align = "default", eval = TRUE) library(gt) suppressMessages(library(tidyverse)) Basics of gt A basic gt table can be created as so data("iris") glimpse(iris) ## Rows: 150 ## Columns: 5 ## $ Sepal.Length <dbl> 5.1, 4.9, 4.7, 4.6, 5.0, 5.4, 4.6, 5.0, 4.4, 4.9, 5.4, 4… ## $ Sepal.Width <dbl> 3.5, 3.0, 3.2, 3.1, 3.6, 3.