bufferforsiland {siland} | R Documentation |
Percentage of landscape variable in buffers.
Description
Function computing the percentages of landscape variables in buffers of given sizes (i.e. radii).
Usage
bufferforsiland(d, sfGIS, loc.sf, landnames, border = F)
Arguments
d |
a vector of the distances of the buffer sizes. The length of |
sfGIS |
an object of class sf containing the landscape variables (land uses). Landscape variables are equal to 1 (presence) or 0 (absence). |
loc.sf |
an object of class sf or a dataframe containing locations of buffers centers. For dataframe, locations have to be given in columns "X" and "Y". |
landnames |
a vector of characters of the names of the landscape variables |
border |
a logical ( |
Value
a dataframe containing the percentages of the landscape variables named landnames
(in columns) in buffers of sizes described in d
and centered on locations described in loc.sf
(in rows).
Author(s)
Martin O.
Examples
data(dataSiland)
data(landSiland)
dataSiland[1:10,c("X","Y")]
landSiland$L1
landSiland$L2
res=bufferforsiland(c(100,200),sfGIS=landSiland, loc.sf=dataSiland, landnames=c("L1","L2"))
res