is.valid.PPP_Model: Check if an object is a valid PPP_Model

View source: R/PPPModel.R

is.valid.PPP_ModelR Documentation

Check if an object is a valid PPP_Model

Description

Checks if an object is a PPP_Model object and whether it is valid for the use in functions like Layer_Mean

Usage

is.valid.PPP_Model(x, comment = FALSE)

Arguments

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.

Examples

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)


ulrichriegel/Pareto documentation built on April 21, 2023, 8:39 p.m.