Convert XY coordinates to a value index for a matrix
xyindex_to_nindex.Rd
This function converts a double index for a matrix (xy) into a single index for values. This allows vectorised subsetting of incomplete rows and columns.
Arguments
- x
vector of row numbers for target values.
- y
vector of column numbers for target values.
- nrow
The number of rows in the matrix
See also
Other NEMO-MEDUSA spatial tools:
calculate_depth_share()
,
calculate_proximity_weight()
,
netcdf_scheme_helpers
,
scheme_column()
,
scheme_interp_slice()
,
scheme_strathE2E()
,
stratify()
,
voronoi_grid()