dbosak01 / libr

An R package to create data libraries and data dictionaries.
27 stars 1 forks source link

How to access a column value dynamically #83

Closed dbosak01 closed 3 years ago

dbosak01 commented 3 years ago

Need something like a datastep array to access the values of columns dynamically. Like if you want to do a loop across a list of columns.

dbosak01 commented 3 years ago

Added 'arrays' parameter to datastep and defined 'dsarray' class to create a datastep array. Also added a few helper functions like 'length.dsarray' and '[.dsarry' to provide custom indexing.