0

When I filter a dataframe using dplyr, there is an extra step that I need to perform (see code below). can I do something to not have this last row?

df <- df_1 %>%
  filter(col_1 %in% mylist) %>%
  select(col_2) %>%
  unique()
df <- df$col_2 # extra step 

Both cols are of type chr.

jacob
  • 810
  • 3
  • 9
  • 19

0 Answers0