I have a character vector of stopwords in R:
stopwords = c(\"a\" , \"able\" , \"about\" , \"above\" , \"abst
You could use the tm library for this:
require("tm") removeWords(str,stopwords) #[1] "I have "