Description Usage Arguments Value Author(s) Examples
View source: R/DAISIE_max_rates.R
Get the time of maximum area
1 | get_global_max_area_time(totaltime, area_pars, island_ontogeny, sea_level)
|
totaltime |
Numeric defining the length of the simulation in time units. |
area_pars |
A named list containing area and sea level parameters as
created by
|
island_ontogeny |
In |
sea_level |
In |
Numeric with time at which area is maximum during the simulation.
Pedro Neves, Joshua Lambert, Shu Xie
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | timeval <- 1
totaltime <- 10
area_pars <- DAISIE::create_area_pars(
max_area = 5000,
proportional_peak_t = 0.5,
peak_sharpness = 1,
total_island_age = 15,
sea_level_amplitude = 0,
sea_level_frequency = 0,
island_gradient_angle = 0
)
island_ontogeny <- 1
sea_level <- 0
testthat::expect_silent(
global_max_area_time <- DAISIE:::get_global_max_area_time(
totaltime = totaltime,
area_pars = area_pars,
island_ontogeny = island_ontogeny,
sea_level = sea_level
)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.