View source: R/usingOccurrenceData.R
calculateChangeAtPoints | R Documentation |
This function extracts rasterLayer values for each time-associated rasterLayer, retaining a value for each cell where an occurrence point is found. It returns a data.frame with the difference in rasterLayer value for each retained point for its sampling timestep vs. the opposing timestep.
calculateChangeAtPoints(rast1, rast2, rastnames, pts1, pts2, ...)
rast1 |
First input rasterLayer |
rast2 |
Second input rasterLayer |
rastnames |
Character vector of layerNames to be compared (defaults to "Summer" and "Winter" for rast1 and rast2 respectively) |
pts1 |
Points used to create rast1 |
pts2 |
Points used to create rast2 |
... |
Optional extra columns to include in output data.frame. |
A dataframe containing occurrence points categorized by their associated rasterLayer and the difference at that point between the associated and the opposing layer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.