Skip to content
#

pivot-tables

Here are 166 public repositories matching this topic...

sfd99
sfd99 commented Apr 7, 2020

GREAT, Sam!
janitor is wonderful.

btw:
a shortcut to get Total Sums
for BOTH rows AND cols:

mtcars %>%
tabyl(am, cyl) %>%
adorn_totals(c("row", "col"))
am 4 6 8 Total
0 3 4 12 19
1 8 3 2 13
Total 11 7 14 32

So,
(easy) SUGGESTION -
also allow keyword:
"both"
as param to:
adorn_totals("both")
or maybe simply:
adorn_totals()

less coding...easier...

Improve this page

Add a description, image, and links to the pivot-tables topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the pivot-tables topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.