View source: R/growth_linear.R
growth_linear | R Documentation |
Assuming an linear behavior, estimates the population size at time t, the growth rate, or population at time 0.
growth_linear(
Nt = NULL,
N0 = NULL,
r = NULL,
t0,
t,
time_interval,
date = FALSE
)
Nt |
numeric. The population at time t. If null and date = FALSE, then estimate the population at time t. |
N0 |
numeric. The population at time 0. If null and date = FALSE, then estimate the population at time 0. |
r |
numeric. The growth rate. If null and date = FALSE, then estimate the growth rate for the time period [t0,t]. |
t0 |
numeric. An object of class character with the date for the first population. |
t |
numeric. An object of class character with the date for the second population. |
time_interval |
character. A string with the time interval to calculate Delta_t. |
date |
logical. If TRUE, then estimates the moment t when Nt reaches a specific value. |
growth_linear
returns a data frame with N0, Ntr, t0, t, delta, and time_interval for desire parameters.
Cesar Gamboa-Sanabria
growth_exppopstudy
growth_exp
,growth_logistic
# According to the Panama census at 2000-05-14,
# the population was 2,839,177. In 2010-05-16, the census
# calculates 3,405,813 population.
# To get r:
growth_linear(N0=2839177, Nt=3405813, t0="2000-05-14", t="2010-05-16", time_interval = "years")
# To get Nt at 2000-06-30:
growth_linear(N0=2839177, r=0.0182, t0="2000-05-14", t="2000-06-30", time_interval = "years")
# The time when the population will be 5,000,000.
growth_linear(N0=2839177, Nt=5000000, r=0.0182, t0="2000-05-14", date=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.