| vec_extract_points | R Documentation |
Extract band values at (x, y) points from a .vec raster
vec_extract_points(r, x, y)
r |
A |
x |
Numeric vector of x coordinates in CRS units. |
y |
Numeric vector of y coordinates, same length as |
A data.frame with columns x, y, then one column per band
(named after r$band_names if recorded, otherwise band1, band2,
...). NA marks pixels outside the raster or matching nodata.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.