Home › Practice › SAS vs R for Clinical Programming — 26-Day Series
Day 14: Arrays and RETAIN — SAS vs R
Arrays, DO loops, RETAIN and LOCF compared with across, cumsum and fill
Practice SAS arrays, DO loops, _TEMPORARY_ lookups, parallel arrays and RETAIN for running totals, LOCF and baseline/CHG, against R across(), named vectors, cumsum(), fill() and first() with .by, including the RETAIN leak and LENGTH traps.