How do I reference to a column by column number in jsl when column number is a variable?
Nov 1, 2019 5:21 AM(1345 views)
I'm having trouble subsetting columns. In the code below, I'm looking to create multiple new data tables (and perform some analyses with them- though I deleted that part of the script) from my current table. My current table is formatted with one "X" column (column 1) and several "Y" columns (columns 2 through ncols(dt). I'm having an issue where the columns() function does not recognize icol as a variable representing a number (I assume it's looking for a column named icol). Is there a fix for this?