I have a data set in which I want to calculate the cumulative sum in R. Example of my data name "agfield"
| ID| SUP | RAND | |:---- |:------:| -----:| | 1 | 500