My data frame is as follows:
structure(list(Keyword = c("Sales", "Info", "Reply", "Service", 
"Accounting", "donotreply"), Class = c("Check", "Send", "Do Not Send", 
"Check", NA, "Do Not Send")), class = "data.frame", row.names = c(NA, 
-6L))
I am trying to transform the Keywords that are "Do Not Send" into their own vector by piping them into an as.vector. The following is my code thus far:
DNSkeywords <- data.frame(read_excel('Keywords List.xlsx', sheet = 'Sheet1', col_names = TRUE)) %>% 
  filter(Class == 'Do Not Send') %>% 
  select(Keyword) %>% 
  as.vector(.$Keyword)
My output should simply be the following:
c("Reply", "donotreply")
Granted, I could write a second line of DNSkeywords <- as.vector(DNSkeywords$Keyword), but I would rather pipe it in. I'm unsure how to utilize the as.vector() command inside the tidyverse such that I can select a single column in the tibble.
 
    