Description Usage Arguments Value Author(s)
Simple helper function to prepare data for model fitting
1 | prepareData(x, p, b, factors, xy=FALSE)
|
x |
Raster* object |
p |
presence points |
b |
background (or absence) points |
factors |
vectors indicating which variables are factors (using layer names or numbers) |
xy |
logical. If |
data.frame with nlayers(x)+1
columns and nrow(p) + nrow(b)
rows. The first column, 'pb' indicates whether a record represents presence '1' or background '0' values. The other columns have the values from the Raster* object.
Robert J. Hijmans
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.