I'm using the toturial of Paula Moragada: https://www.paulamoraga.com/tutorial-geostatistical-data/#1_data to build a marine isoscape. I am using a csv file with carbon isotope data of zooplankton with their respective latitude/longitude data, and I am using a bathymetry raster as a covariate. But when I get to the step of prediction data I can't get past this line because I receive this issue:
coop <- dp[, c("long", "lat")] Error in dp[, c("long", "lat")] : subscript out of bounds
Does any one know how I can solve this problem?