# Specify the calculation by column using adorn_totals()

Advertisements I am trying to add a totals row usin ghte Janitor package in R, however I need 2 columns to be totaled using the sum function and one column to be a percentage (not the sum of the column). library(tidyverse) library(janitor) df.1 <- tribble( ~customer ,~period, ~cost1, ~cost2 , ‘cust1’, ‘202201’, 5, 10, ‘cust1’,… Read More Specify the calculation by column using adorn_totals()