I have a dataframe with 467 columns. When I want to select specific columns
input <- c("bread", "milk")
for (i in 1:length(input)){
flow <- df[input[i]]}
It return only the "milk" column. Is there any solution to this problem?
I have a dataframe with 467 columns. When I want to select specific columns
input <- c("bread", "milk")
for (i in 1:length(input)){
flow <- df[input[i]]}
It return only the "milk" column. Is there any solution to this problem?