I want to extract stop words for several languages in one dplyr
pipeline using this code:
library(tidyverse)
library(qdap)
library(tm)
map_dfr(tibble(language=c("english", "italian")), tm::stopwords)
Which gives me uninformative error message:
Error in file(con, "r") : invalid 'description' argument
In addition: Warning message:
In if (is.na(resolved)) kind else if (identical(resolved, "porter")) "english" else resolved :
the condition has length > 1 and only the first element will be used
Can some one explain this and suggest work around. I would like to have tibble where each row corresponds to language title and respective list (vector) of stop words?