rcpp_cell_from_xy: Get cell number

View source: R/RcppExports.R

rcpp_cell_from_xyR Documentation

Get cell number

Description

Get cell number(s) of a matrix from row and column numbers. Cell numbers start at 0 in the upper left corner, and increase from top to bottom, and then from left to right.

Usage

rcpp_cell_from_xy(x, y)

Arguments

x

A matrix

y

A matrix with two columns (row and column numbers)


landscapemetrics documentation built on Sept. 12, 2024, 7:42 a.m.