# 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"
)