Answers for "select columns in r"

C
0

select columns in r

df %>% select(column1, column2)
Posted by: Guest on February-27-2021
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 "select columns in r"

Code answers related to "C"

Browse Popular Code Answers by Language