I have roughly 30 predictor variables in raster and two polygon shapefiles format that I am trying to extract values from for a given response variable coordinates.
I have already done the following:
- reprojected all data into same projection (GDA 1994)
- resampled all rasters to have same resolution
Now my specific question is as follows:
What function will allow me to extract values from all the predictor variables for given coordinates and output into a .csv file?
Just to be clear, the following is the output format I need:
X Y Insect.Abundance Predictor.1 Predictor.2 .... Predictor.x
My predictor variables are in rasters and polygons. What I want to do is extract a value for each X Y point provided by my response variable. I have not done anything with the polygons besides check for correct projection.