N_structure_gridbased {ssMRCD} | R Documentation |
Creates Grid-Based Neighborhood Structure
Description
This function creates a grid-based neighborhood structure for the ssMRCD
function using cut-off values for two coordinate axis.
Usage
N_structure_gridbased(x, y, cutx, cuty)
Arguments
x |
vector of first coordinate of data set. |
y |
vector of second coordinate of data set. |
cutx |
cut-offs for first coordinate. |
cuty |
cut-offs for second coordinate. |
Value
Returns a neighborhood assignment vector for the coordinates x
and y
.
Examples
# get data
data(weatherAUT2021)
# set cut-off values
cut_lon = c(9:16, 18)
cut_lat = c(46, 47, 47.5, 48, 49)
# create neighborhood assignments
N_structure_gridbased(weatherAUT2021$lon,
weatherAUT2021$lat,
cut_lon,
cut_lat)
[Package ssMRCD version 0.1.0 Index]