# NOT RUN {
# Use `iris` to create a gt table; split
# any columns that are dot-separated
# between column spanner labels (first
# part) and column labels (second part)
tab_1 <-
iris %>%
dplyr::group_by(Species) %>%
dplyr::slice(1:4) %>%
gt() %>%
tab_spanner_delim(delim = ".")
# }
Run the code above in your browser using DataLab