I want to construct a new dataframe in R that only contains three of the six columns in my current data frame.
The only command I can think of to extract columns A, B, and E from a data frame called df is this:
data.frame(df$A,df$B,df$E)
Is there a more efficient method to accomplish this?