{flextable} extension to create ready-to-use frequency tables in shiny and rmarkdown, and easily exportable to Word, PowerPoint and Excel.
You can install the development version of {flexpivot} from GitHub with:
remotes::install_github("dreamRs/flexpivot")
library(flexpivot)
library(magrittr)
nobel_laureates %>%
subset(category %in% c("Chemistry", "Physics")) %>%
pivot_table("category", "gender") %>%
pivot_format()
More examples available in the vignette : https://dreamrs.github.io/flexpivot/articles/flexpivot.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.