I am a beginner R and I am stuck in this problem. I had a data block, and using the split () function, I created a list of data frames, for example:
dfList <- split(mtcars, mtcars$cyl)
Now I want to get a column of a specific data frame, for example. column 2 from data frame 1, so something like
dfList[1][2]
Now I can create for loops to get inside the data structure. But I can not find oneliner to do this if it exists. How can i do this? Thanks in advance!
list split r dataframe
lightRW
source share