Intermediate techniques in text analysis with R