Description Usage Arguments Details Value Examples
View source: R/data_analysis.R
Nadults calculates, for several scenarios, the harmonic mean of the total
number of adults between yr0 and yrt. These can be use to
calculate Ne/N ratios where relevant.
1 2 3 4 5 6 7 8 9 10 11 12 |
data |
The second element (census_means) of the output from |
scenarios |
A vector of scenario names for which Ne needs to be calculated, default: 'all' |
npops_noMeta |
The total number of populations excluding the metapopulation, default: 1 |
appendMeta |
Whether to calculate data for the metapopulation, default: FALSE |
gen |
The generation time express in years |
yr0 |
The time window to be considered (first and last year respectively) |
yrt |
The time window to be considered (first and last year respectively) |
save2disk |
Whether to save the output to disk, default: TRUE |
fname |
The name of the files where to save the output, defult: 'Nadults' |
dir_out |
The local path to store the output. Default: DataAnalysis |
yrt is adjusted by subtracting the number of years of the generation
time (rounded to the nearest integer). In this way the user can provide the
same yr0,yrt and gen to Nadults and Ne and these
values are adjusted internally to correctly calculate the Ne/N ratios where
relevant. If this behaviour is not desired, use gen=0.
A data.table (data.frame if data.table is not
loaded) with Nb values
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.