bufferforsiland: Percentage of landscape variable in buffers.

View source: R/bufferforsiland.R

bufferforsilandR 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 d has to be equal to that of landnames.

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 (FALSE by default). If border=FALSE buffers are computed from the locations points given in loc.sf If border=TRUE buffers are computed from the border of the polygon that contain the points in loc.sf.

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




siland documentation built on March 31, 2023, 7:33 p.m.