calculateChangeAtPoints: Calculate the change in rasterLayer values between rast1 and...

View source: R/usingOccurrenceData.R

calculateChangeAtPointsR Documentation

Calculate the change in rasterLayer values between rast1 and rast2 at the presence points used to create each of those surfaces.

Description

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.

Usage

calculateChangeAtPoints(rast1, rast2, rastnames, pts1, pts2, ...)

Arguments

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.

Value

A dataframe containing occurrence points categorized by their associated rasterLayer and the difference at that point between the associated and the opposing layer.


cjcampbell/SDMetrics documentation built on Oct. 2, 2022, 10:14 a.m.