0

I have the next problem.

I need to obtain by grouping and aggregating the following:

tabA<-data.frame(nro=c(1,1,2,2,3,3),
           date=c("2020-10-01","2021-10-05","2022-12-10",
                  "2022-11-01","2020-11-14","2019-10-11"),
           value=c(30,20,10,12,11,13))



tabB<-data.frame(nro=c(1,2,3),
               date=c("2020-10-01",
                      "2022-11-01","2019-10-11"),
               value=c(30,12,13))

Basically, I need to group by the column nro. Then I need to select the minimum date by summarizing and get the corresponding value.

user3483060
  • 337
  • 2
  • 13

0 Answers0