Since we don't have the full dataframe to look at, it's going to be hard to give a full answer. That being said, running the subset function multiple times, each time adding a column, will tell you where your issue is.
foo <- df['a']
foo <- df['a','b']
Alternatively, you can do something similar, but with select()
from dplyr
:
foo <- df %>%
select('a','b')
You'll get an error message telling you which columns don't exist.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…