prep_pheno_data: Prepare your phenotypic cline data for loading into Stan

Description Usage Arguments Details Value See Also Examples

View source: R/prep_pheno_data.R

Description

Converts a dataframe containing your phenotypic data into the list format required for input to Stan. See details below for a description of the possible input formats.

Usage

1
prep_pheno_data(dataframe)

Arguments

dataframe

A dataframe containing your phenotypic cline data. See details for the necessary format.

Details

The input dataframe can be a data frame or a tibble. Each row should contain the information for a single sampled individual. Two named columns must be present, all other columns will be ignored:

Value

Your data in Stan-ready list format.

See Also

fit_pheno_cline

Examples

1
2
3
4
## Not run: 
prep_pheno_data(yourdata)

## End(Not run)

tjthurman/BAHZ documentation built on May 30, 2020, 8:28 a.m.