So I have a dataframe with coordinates and site id's for 117 sites and I want to filter it and make a new df which only contains the data of a select 50 sites, of which the ID's are in another df.
Below is my code, however I got this error "longer object length is not a multiple of shorter object length"
Code:
longlat_LH <- longlat %>% filter(site_id == LH_sites$site_id)