as.ppp | R Documentation |
Function to covert a spatstat quadrature
## S3 method for class 'ppmData'
as.ppp(X, ..., fatal = TRUE)
X |
A ppmData object |
fatal |
Logical value specifying what to do if the data cannot be converted. See Details. |
\dots |
Ignored |
## Not run:
library(ppmData)
path <- system.file("extdata", package = "ppmData")
lst <- list.files(path=path,pattern='*.tif',full.names = TRUE)
preds <- rast(lst)
window <- preds[[1]]
presences <- subset(snails,SpeciesID %in% "Tasmaphena sinclairi")
object <- ppmData(npoints = 10000, presences=presences, window = window, covariates = preds)
X <- as.ppp(object)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.