Check if an object is a valid PPP_Model
Checks if an object is a PPP_Model object and whether it is valid for the use in functions like Layer_Mean
is.valid.PPP_Model(x, comment = FALSE)
x
: Object to be checked.comment
: If FALSE then the function returns a boolean indicating whether x
is a valid PPP_Model. If TRUE then the function returns a comment instead.PPPM <- PPP_Model(2, c(1000,2000), c(1,2), dispersion = 2) PPPM is.valid.PPP_Model(PPPM) is.valid.PPP_Model(PPPM, comment = TRUE) PPPM$alpha <- 2 is.valid.PPP_Model(PPPM) is.valid.PPP_Model(PPPM, comment = TRUE)