R, Quant UX, and Marketing Research author. Executive Director, Quant UX Association.
President, Quant UX Association. Previously: Principal UX Researcher @ Google; Amazon Lab 126; Microsoft. Author of "Quantitative User Experience Research" and "[R | Python] for Marketing Research and Analytics".
Markdown supported · ⌘↵ to post
Is there a reason you prefer to use a new.env() rather than a list (which is how I would have done it)?
Chris Chapman
Riccardo Melani
Hello and thanks for this amazing blog! Assuming we have that character vector (words) containing the words to count (which would need to be generated following some text mining I guess?), how about this in tidyverse: wordcounter <- data.frame(word= words) %>% count(word)