How do I use stemming correctly?

What you are looking for is lemmatisation:

According to the NLP task view, the R package udpipe provides this functionality. And some other sites recommend textstem as well.

This thread give a few examples:

Hope this helps.