Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/simCovariates.r
Create a set of covariates in a 100x100 world with a vertical linear feature and discrete habitats.
1 | simCovariates(hab.range=30, probs=c(1/3,2/3), river.loc=50)
|
hab.range |
habitat range that controls patchiness |
probs |
ordered probablities that define habitat cutoffs |
river.loc |
x coordinate for north-south river location |
The number of habitat types is the length of probs
plus 1. The
habitats are stored as a numeric from 1 to the number of types, but should
be fitted with habitat as a factor variable. The distance to the river is
a scaled distance from 0 to 1.
dataframe with columns x,y,river and habitat
Devin Johnson; Jeff Laake
1 | covariates = simCovariates(hab.range=50, probs=c(1/3,2/3,7/8))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.