is.Bioenergetic: Test if Object is Bioenergetic

View source: R/13.0-bioenergetic-classes.R

is.BioenergeticR Documentation

Test if Object is Bioenergetic

Description

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")
)
is.Bioenergetic(bio)
is.Bioenergetic(list())

fb4package documentation built on May 8, 2026, 1:07 a.m.