x <- c("NOUN", "VERB", "NOUN", "ADV")
txt_recode(x = x,
from = c("VERB", "ADV"),
to = c("conjugated verb", "adverb"))
txt_recode(x = x,
from = c("VERB", "ADV"),
to = c("conjugated verb", "adverb"),
na.rm = TRUE)
txt_recode(x = x,
from = c("VERB", "ADV", "NOUN"),
to = c("conjugated verb", "adverb", "noun"),
na.rm = TRUE)
Run the code above in your browser using DataLab