block by timelyportfolio bd3c17b1af8c44ec652a40bf7ce0b8e8

rpivotTable with subtotals

Full Screen
# for now only a pull request
#  https://github.com/smartinsightsfromdata/rpivotTable/pull/75
# so please install with devtools
# devtools::install_github("timelyportfolio/rpivotTable@subtotals")

library(rpivotTable)
rpivotTable(
  Titanic,
  subtotals=TRUE,
  aggregatorName = "Sum",
  vals = "Freq"
)