Description Usage Arguments Value Examples
A 'pb ratio' object stores the potentially stochastic ratio of production to standing biomass
1 2 3 4 5 6 7 8 9 10 |
range |
a range of possible pb values |
length |
length of pb value sequence |
probs |
relative probabilities of pb values in pb_range |
type |
one of 'fixed', 'gradient', or 'stochastic' that determines how pb_values are treated |
... |
further arguments passed to or from other methods |
x |
an object to print or test as a pb_ratio object |
An object of class pb_ratio
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | library(trophic)
# Construct the pb_ratio object
test_pb <- build_pb_ratio(range = c(0.25, 5.75), probs = c(5, 20, 10, 3, 1, 1, 1))
# Test if object is of the type 'pb_ratio'
## Not run:
is.pb_ratio(x)
## End(Not run)
# Print information about the 'pb_ratio' object
## Not run:
print(x)
## End(Not run)
# Plot a 'pb_ratio' object
## Not run:
plot(x)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.