makeInputdata: Set up input data for Target cells

Description Usage Arguments Value Author(s) Examples

View source: R/setupVars.R

Description

Prepare data frame of potential matching variables for Target cells from raster files

Usage

1

Arguments

x

RasterStack that covers the area of interest and includes all potential matching variables. Large datasets may be difficult to handle if memory is limited and it may work better to run the function for several RasterStacks(removing previous RasterStacks before reading in the next one) and combine the output into one final data frame. Note: rasters must all have the same extent, resolution, and crs.

Value

data frame with a 'cellnumbers' column (these are unique values for each cell in the rasters used as input and will be used as unique identifiers for the Target cells in other functions), x and y coordinates, and values for each of the rasters in the RasterStack. The rownames correspond to the 'cellnumbers' column.

Author(s)

Rachel R. Renne

Examples

1
2
3
4
5
# Load targetcells data for Target Cells
data(targetcells)

# Create data frame of potential matching variables for Target Cells
allvars <- makeInputdata(targetcells)

DrylandEcology/rMultivariateMatching documentation built on Dec. 17, 2021, 5:30 p.m.