I have 2 rasters, ones shows aspect and another shows date of snow thaw. I want to extract the date of snow melt based on values from the aspect raster. For example I want all the snow thaw dates from south facing slopes. I have already identifies north (1), east(2), south(3), west(4). I have tried to extract the values:
snowThawSouth <- extract(aspect==3, snowThawDate)
However I just got the following error:
Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘extract’ for signature ‘"RasterLayer", "RasterLayer"’ In addition: Warning message: closing unused connection 3 (/var/folders/4_/9jsy7tfj2yq0s_czc2gc6tvh0000gn/T/R_raster_USER//2015-07-17_152719_21839_88030.gri)
I just want to be able to extract all the values for each aspect, into a list, in order to compare the snow thaw dates based on the aspect of the cell.