I have a table in which there are 30 columns. One column is country names and other the dates which have number of recovered patients from corona. there is repetition in country names and every time they have different values . now i want to add all the values for a date for the same country.
for example
china 0 9 3
china 1 3 4
china 3 1 5
output should be:
china 4 13 12
PS: I have different functions like rowSums
, across(everything())
by grouping against country.region
but could not able to solve. Any help would be much appreciated