Main function families
Cell operations (cells):
cell_from_xy(),cell_from_row_col(),cell_from_rowcol_combine()- cell index from positioncell_from_row(),cell_from_col()- all cells in a row or columncell_from_extent(),extent_from_cell()- cell/extent conversionxy_from_cell(),x_from_cell(),y_from_cell()- coordinates from cellrowcol_from_cell(),row_from_cell(),col_from_cell()- row/column from cell
Coordinate operations (coordinates):
x_from_col(),y_from_row()- coordinate from indexcol_from_x(),row_from_y()- index from coordinatex_corner(),y_corner()- corner coordinates of all cellsx_centre(),y_centre()- centre coordinates of all cellsxy()- centre coordinates of all cells as a matrix
Grid properties (grid):
x_min(),x_max(),y_min(),y_max()- individual extent edgesorigin()- grid origin (alignment anchor)
Grid modification:
vcrop()- crop or extend a grid, snapped to alignmentalign_extent()- snap an extent to grid originextent_dimension()- dimension for an aligned extentintersect_extent()- overlapping extent of two gridssnap_extent()/buffer_extent()- snap extent to resolution
Cell adjacency (adjacency):
adjacency()- neighbour cell indices (queen, rook, or bishop)
GDAL interoperability:
geo_transform0(),geo_world0()- create geotransform / world file vectorsworld_to_geotransform(),geotransform_to_world()- convert between formatsextent_dim_to_gt(),gt_dim_to_extent()- convert extent/dimension to/from geotransformrasterio0(),rasterio_idx(),raster_sfio()- GDAL RasterIO parametersrasterio_to_sfio(),sfio_to_rasterio()- convert between RasterIO formatsts_te(),gdal_ts(),gdal_te()- format dimension/extent for GDAL command line
Output and display:
vaster_long()- cell coordinates as long-form matrixvaster_listxyz()- grid as x, y, z list forgraphics::image()vaster_boundary(),vaster_boundary_cell()- boundary coordinatesplot_extent(),draw_extent()- plot and interactively draw extentsextent_vrt()- tile extents from VRT files
Utilities:
from_xyz()- derive grid dimension and extent from XYZ pointsfit_dims()- compute dimension from aspect ratio and target size