Description Usage Arguments Details Value See Also
View source: R/getStatsAlongLine.R
This is applies raster::extract()
but does some checking on the projection
of the inputs. Set d=0
to get value at the points.
1 | getStatsAlongLine(r, p, l = NULL, d = 0, na.rm = TRUE)
|
r |
the raster as a |
p |
the points as a |
l |
the lines as a |
d |
distance to average along the line. Distance is in the units of the points and raster objects |
na.rm |
whether to remove NAs in the raster when computing the average |
If there are multiple lines within the radius of d
, then the average is over all lines covered
in that radius. The segments to average is determine by a circle around the points.
raster values around the points
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.