Relative Content

Tag Archive for rlistloopsindexing

How to create a list from a dataframe using indexing

This is probably a very simple question. But I can not figure out how to fix it.
I have a dataset with lots of columns and I want to run a loop to create histograms for certain columns. I know I can create a list using the column name but is there a way to use indexing instead?