Can someone demonstrate on a video tutorial how this is done?

A reprex is the preferred way to show folks exactly what you're trying to do, and it'll reproduce any output or error messages you encounter along the way as well, FAQ: What's a reproducible example (`reprex`) and how do I do one?.