The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The goal of ReportSubtotal is to adds subtotal rows / sections (a la SAS’s Proc Tabulate) to a Group By output.
You can install the released version of ReportSubtotal from CRAN with:
{r} install.packages("ReportSubtotal")
This is a basic example which shows you how to solve a common problem:
```{r example} library(dplyr) library(ReportSubtotal)
group_by(iris, Species, Petal.Width) %>% summarise(Mean_Width = mean(Sepal.Width), .groups = “keep”) %>% subtotal_row(iris, vars = “Sepal.Width”, aggregator = “mean”)
group_by(mtcars, cyl, gear, carb) %>% summarise(Med_Wt = median(wt), Med_Hp = median(hp), .groups = “keep”) %>% subtotal_row(mtcars, vars = c(“wt”, “hp”), aggregator = “median”)
```
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.