Learn R Programming

siland (version 1.4.6)

bufferforsiland: Computes percentage of land use for buffers.

Description

Computes percentage for landscape variables. This function is adapted when ladscape varibales correspond to land uses, such as conventional, orchard, forest, etc...

Usage

bufferforsiland(d, sfGIS, loc.sf, landnames, border = F)

Arguments

d

vector of distances to compute percentages for landscape uses given in landnames argument. The length of d has to be equal to that of landnames.

sfGIS

an object of class sf that gives the landscape variables (land uses). For land uses, landscape variables are equal to 1 or 0.

loc.sf

an object of class sf or a dataframe that gives locations for center buffers. In the case of a dataframe, locations have to be given in columns "X" and "Y".

landnames

vector of characters that gives the names of landscape variables for which buffer are computed

border

a logical (False by default). If False distance are computed from the point given in loc.sf. If true distance are computed from the boudnary of the polygon that contain the points in loc.sf.

Value

a dataframe. Each column gives the percentage of landscape variables given in landnames and for buffer distances in d object

Examples

Run this code
# NOT RUN {
data(dataSiland)
data(landSiland)
dataSiland[1:10,c("X","Y")]
landSiland$L1
landSiland$L2

bufferforsiland(c(100,200),sfGIS=landSiland, loc.sf=dataSiland, landnames=c("L1","L2"))

# }
# NOT RUN {

# }

Run the code above in your browser using DataLab