is.valid.PPP_Model {Pareto}R 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)


[Package Pareto version 2.4.5 Index]