View source: R/trivial_gradient.R
| trivial_gradient | R Documentation |
Models a constant gradient with value 1. Mainly used as default input to last_occ and range_offset.
trivial_gradient(x)
x |
time/stratigraphic position at which the gradient is determined |
A vector of the same length as x with all entries replaced by 1.
last_occ(), range_offset(), trivial_niche(), and apply_niche()
x = p3(rate = 10, from = 0, to = 1) # model fossil occurrences
# apply trivial niche model
y = apply_niche(x, niche_def = trivial_niche, gc = trivial_gradient)
all(x == y) # true, no fossils were removed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.