cells | R Documentation |
Functions that work with cells.
cell_from_xy(dimension, extent = NULL, xy)
cell_from_extent(dimension, extent = NULL, x_extent)
extent_from_cell(dimension, extent = NULL, cell)
rowcol_from_cell(dimension, extent = NULL, cell)
xy_from_cell(dimension, extent = NULL, cell)
x_from_cell(dimension, extent = NULL, cell)
y_from_cell(dimension, extent = NULL, cell)
col_from_cell(dimension, cell)
row_from_cell(dimension, cell)
cell_from_row(dimension, row)
cell_from_col(dimension, col)
cell_from_row_col(dimension, row, col)
cell_from_rowcol_combine(dimension, row, col)
dimension |
integer ncol, nrow |
extent |
numeric extent xmin,xmax,ymin,ymax |
xy |
matrix of coordinates |
x_extent |
extent to find cells of |
cell |
cells to find extent, or row,col, or xy of |
row |
row to find cell of |
col |
column to find cell of |
The cell is indexed from the top left corner and proceeds to the right, and then down scanning by rows. The n cell is a the bottom right corner. Orientation is different to R's native matrix order, but see (WiP doc and helpers for conversion).
cell index
cells of extent
extent of cells
row,col of cells
xy from cells
x of cells
y of cells
col of cells
row of cells
cell of rows
cell of cols
cell of row,col
cell of row,col combined
cell_from_xy(c(10, 5), extent = c(0, 10, 0, 5), cbind(5, 4))
cell_from_extent(c(10, 5), c(0, 10, 0, 5), c(6, 7, 2, 3))
extent_from_cell(c(10, 5), c(0, 10, 0, 5), c(4, 5))
rowcol_from_cell(c(10, 5), c(0, 10, 0, 5), 3:5)
xy_from_cell(c(10, 5), c(0, 10, 0, 5), 4:6)
x_from_cell(c(10, 5), c(0, 10, 0, 5), 4:7)
y_from_cell(c(10, 5), c(0, 10, 0, 5), 4:7)
col_from_cell(c(10, 5), 4:7)
row_from_cell(c(10, 5), 4:7)
cell_from_row(c(10, 5), 4:7)
cell_from_col(c(10, 5), 4:7)
cell_from_row_col(c(10, 5), 1:4, 4:7)
cell_from_rowcol_combine(c(10, 5), 1:4, 4:7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.