Description Usage Arguments Details Value Author(s) References
Calculates densities for moving window bins. Used in the Woodpecker HSI package to calculate observed nest densities in relation to habitat suitability values (HSI) values. The function could also be used to calculate density of any point observation within a study area, wherein values for a particular environmental variable or gradient are assessed at each observation and for each of a regularly spaced set of background pixels.
1 | calcBinDensities(sampleHSI, bgroundHSI, bins, area)
|
sampleHSI |
Numeric vector of HSI values for observations (e.g., nest sites) |
bgroundHSI |
Numeric vector of HSI values for random background sample representing available sites |
bins |
List with three elements that assign background samples (values in bgroundHSI) to moving window bins within which densities are to be calculated (names(bins) = c("unitID", "st", "end"); see 'calcBins' function) |
area |
Numeric scalar representing the area surveyed |
Calculates the density of observations within moving window bins indexed by the 'calcBins' function. Output is a table with each row corresponding with a bin and number of rows equal to the number of bins, i.e., length(bins$st).
Data frame (class = "tbl_df", see dplyr package) with rows corresponding to moving window bins (nrow = length(bins$st)). Information provided are bin parameters ("HSI.md" = median HSI, "HSI.st" = lower bound, "HSI.end" = upper bound) and the density of observations within each bin ("Density").
Quresh S. Latif, Rocky Mountain Research Station, U.S. Forest Service
Wiens, T. S., B. C. Dale, M. S. Boyce, and G. P. Kershaw. 2008. Three way k-fold cross-validation of resource selection functions. Ecological Modelling 212:244-255.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.