I have a .csv file on Pacific Ocean data that contains longitude and latitude information for coordinates. Ideally what I want to do is map the closest points by their longitude and latitude and set a range of some mileage proximity to each of the West Coast states, such as Washington, Oregon, and California. For example, I want all the latitude and longitude points that are within 100 miles of the Oregon coastline. Then I would tag these points as the Oregon points. How would I go about filtering the data like this? Also, I can not use the pipe operator.
I've tried a few different sf functions but I'm unsure how to proceed since most of the sf functions seem to be used for mapping.