I have as simple question, at least I think it is/?!
I have a df, see below and attached example, that I would like to add totals to all rows and columns in. In reality the df I need to do it on has many more columns and rows so I need a solution that is not too time consuming please, that is does not sum each row column one at a time?
Data
df <- structure(list(Name = c("Joe", "Sanj", "Rob"), Date = c("12/08/2020", "13/08/2020", "14/08/2020"), Col1 = c(20, 60, 40), Col2 = c(40, 40, 40), Col3 = c(100, 233, 500)), row.names = c(NA, -3L), class = c("tbl_df", "tbl", "data.frame"))
# A tibble: 3 x 5
Name Date Col1 Col2 Col3
<chr> <chr> <dbl> <dbl> <dbl>
1 Joe 12/08/2020 20 40 100
2 Sanj 13/08/2020 60 40 233
3 Rob 14/08/2020 40 40 500