I am looking to use dplyr to select only variables in my dataset that end in "500" exactly. That is, I do not want variables ending in 2500, 5500, or 1500. Just 500. I tried using ends_with("500")
, but this includes the aforementioned variables ending in 2500, etc that I want to exclude.
I'm sure this is a very thing to do, but I am having trouble finding exactly what I want via google search.
Thanks!