I have this data frame with 3 columns and I need a 4th column which makes the increase of the value for each Fund for each date, in this case it is only possible for 2022-01-02 values.
Date <- c("2022-01-01","2022-01-01","2022-01-01","2022-01-02","2022-01-02","2022-01-02")
Fund <-c("A","B","C","C","A","B")
Values <- c(10,10,10,13,17,15)
For example this would be one result
| Date | Fund | Value | Increase % |
|---|---|---|---|
| 2022-01-02 | A | 17 | 70% |