Check out example codes for "r - extracting specific columns from a data frame". It will help you in understanding the concepts better.

Code Example 1

### Solution 2
library(dplyr)
df %>%
  select(A, B, E)
  
### Solution 2
new_df <- subset(df, select=c("A", "B", "C"))

Learn ReactJs, React Native from akashmittal.com