Hello,
I have a large data file with many columns of data. I would like to create an automated way to subset the raw data based on a list of columns.
If this table is my raw data
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
# | # | # | # | # | # | # | # | # | # |
# | # | # | # | # | # | # | # | # | # |
and my list of columns that I would like to subset may be [1,4,6,9]
I want to generate a new table that looks like this
The reason I can't just hardcode what columns to take is the list will is updated every so often so I would like a more hands-free way of dealing with this.
If I need to provide more information let me know.
Thanks!