Sample text mining procedures in R