windowExtract: Extract raster values in a window

Description Usage Arguments Value Creation notes

View source: R/rasterWindowExtract.R

Description

Extracts rasters using a defined radius from a cell location

Usage

1
windowExtract(xf, yf, radius = 1, xydata)

Arguments

xf, yf

Input cellIDs that you are extracting from.

radius

numeric. radius used to define extractWindow

xydata

data.frame object that contains the correct headers ('x', 'y', (valcolumns)). Will need to seperate out this function and create a class for it.

Value

Returns a data.frame with the raster values extracted at the current radius.

Creation notes

First created on 2019-Mar-6 in the Lab4inR.R and select.window.R scripts in my IBM class folder of the purdueResearch git. They were developed using base code from CommEcol::select.window().


jacpete/jpfxns2 documentation built on May 10, 2020, 9:15 p.m.