If we prefix the set elements with a name, we achieve much more clarity:
Exporting set elements
- Drop the first character ‘i’ from df$i.
- Convert df$i from string to numeric (type casting).
Partial GAMS solution
Conversion in R
Conversion in SQL
cast(substr(i,2) as numeric) as i,