It's not even about speed, it's about elegance. Use R's functional capabilities instead of messing around with loops!
I mention the Enron Corpus in the video, you can read more about it here:
https://www.brodrigues.co/blog/2020-11-21-guis_mistake/
Follow me on twitter: https://twitter.com/brodriguesco
Read my blog: https://www.brodrigues.co/
Find these videos useful? You can buy me a coffee to express your gratitude: https://www.buymeacoffee.com/brodriguesco
Learn R by reading my free ebook: https://b-rodrigues.github.io/modern_R/