Learn R Programming

fb4package (version 2.0.0)

is.Bioenergetic: Test if Object is Bioenergetic

Description

Tests whether an object inherits from the Bioenergetic class.

Usage

is.Bioenergetic(x)

Value

A length-1 logical: TRUE if x inherits from class

"Bioenergetic", FALSE otherwise.

Arguments

x

Object to test

Examples

Run this code
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())

Run the code above in your browser using DataLab