0

I am trying to add the row of totals for each column to the following data base:

df <- data.frame(
  c1 = c(1,23,4,34),
  c2 = c(5,32,4,6,67),
  c3 = c(53,2,6,7,9)
)

I tried using below line of codes but doesn't seem to work. I am also looking to find %.

a <- map(df, ~ adorn_totals(df, where = "row"))

Thanks

Parfait
  • 97,543
  • 17
  • 91
  • 116
Teena
  • 23
  • 3
  • Did you try your code with your example data? I get an error message immediately because `c1` has only 4 elements whereas the other two have 5. Please test your data with your code before posting. – dcarlson May 22 '22 at 02:25

0 Answers0