Error when trying to use select function

please provide a reprex
FAQ: How to do a minimal reproducible example ( reprex ) for beginners