calc_omega: Calculate Omega for a data frame.

View source: R/RcppExports.R

calc_omegaR Documentation

Calculate Omega for a data frame.

Description

Note: only programmed for data frames sorted by time and for two types of investments.

Usage

calc_omega(input_df, d_vec, sorted = TRUE)

Arguments

input_df

Data frame with columns spp, time, N, V1, and V2. If sorted == TRUE, then the data frame should be sorted by time.

d_vec

Vector of d values.

sorted

Logical for whether data frame is sorted by time. Values of FALSE return an error bc I don't see a point in programming that now. Defaults to TRUE.


lucasnell/evo_alt_states documentation built on Aug. 17, 2022, 5:34 a.m.