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

Description Usage Arguments Examples

View source: R/PPPModel.R

Description

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

Usage

1

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

1
2
3
4
5
6
7
8
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)

Pareto documentation built on March 3, 2021, 5:07 p.m.