Hi,
I am once more seeking help. I want to consolidate rows that have the same material, date in a data set
tibble::tribble(
~Item, ~Date, ~Description, ~Quantity,
"Saw", "01/02/2020", "outdoor", 2L,
"Saw", "01/02/2020", "outdoor", 3L,
"Saw", "01/04/2020", "outdoor", 4L,
"nails", "01/02/2020", "construction", 2L,
"nails", "01/04/2020", "construction", 3L,
"nails", "01/06/2020", "construction", 4L,
"hammer", "01/01/2020", "home", 1L,
"hammer", "01/01/2020", "home", 2L,
"hammer", "01/01/2020", "home", 3L
)
Desired Result:
tibble::tribble(
~Item, ~Date, ~Description, ~Quantity,
"Saw", "01/02/2020", "outdoor", 5L,
"Saw", "01/04/2020", "outdoor", 4L,
"nails", "01/02/2020", "construction", 2L,
"nails", "01/04/2020", "construction", 3L,
"nails", "01/06/2020", "construction", 4L,
"hammer", "01/01/2020", "home", 6L
)
Thank you very much in advance!