Answers for "r - extracting specific columns from a data frame"

R
0

r - extracting specific columns from a data frame

### Solution 2
library(dplyr)
df %>%
  select(A, B, E)
  
### Solution 2
new_df <- subset(df, select=c("A", "B", "C"))
Posted by: Guest on August-04-2020

Code answers related to "r - extracting specific columns from a data frame"

Browse Popular Code Answers by Language