Skip to contents

Tests whether an object inherits from the Bioenergetic class.

Usage

is.Bioenergetic(x)

Arguments

x

Object to test

Value

A length-1 logical: TRUE if x inherits from class "Bioenergetic", FALSE otherwise.

Examples

bio <- Bioenergetic(
  species_params = list(
    consumption = list(CEQ = 1, CA = 0.303, CB = -0.275, CQ = 0.06)
  ),
  species_info = list(common_name = "Example fish")
)
#> Bioenergetic object created for: Example fish
is.Bioenergetic(bio)
#> [1] TRUE
is.Bioenergetic(list())
#> [1] FALSE