SAS to R Tutorial Part 2

This notebook shows how different operations with SAS 'retain' statement can be completed in R: counting delinquencies by accounts, calculating total expenses by accounts and transposing data. The data used here need to be generated from Part 1 of the tutorial.

This is part 2 of the 3-part SAS to R tutorial covering some common data manipulation steps. The other two parts can be found by following these links:
[SAS to R Tutorial Part 1][part1 link]
[SAS to R Tutorial Part 3][Part3 link]
[part1 link]: https://gallery.cortanaintelligence.com/Notebook/SAS-to-R-Tutorial-Part-1-1
[part3 link]: https://gallery.cortanaintelligence.com/Notebook/SAS-to-R-Tutorial-Part-3-1