compute_adaptation: Compute the necessary information for testing adaptation

Description Usage Arguments Value Examples

Description

compute_adaptation computes all necessary information, for all studies, to compare the Weighted Mean Selection (WMS) gradient to the product of the step 1 and 2.

Usage

1

Arguments

data

A dataframe containing per each study the time series of relevant variables (i.e. yearly climate values, yearly trait values or yearly selection differentials) to be analyzed.

Value

A data.frame.

Examples

1
2
3
data_for_Trait <- prepare_data(data = dat_Trait, temperature = TRUE,
                               phenology = TRUE, morphology = FALSE)
compute_adaptation(data = data_for_Trait[data_for_Trait$id %in% c("7"), ])

radchukv/adRes documentation built on June 1, 2019, 7:05 p.m.