Description Usage Arguments Details Value See Also Examples
View source: R/prep_pheno_data.R
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.
1 | prep_pheno_data(dataframe)
|
dataframe |
A dataframe containing your phenotypic cline data. See details for the necessary format. |
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:
transectDist: A numeric column, giving the position along the cline/transect for each individual.
traitValue: A numeric column giving the phenotypic trait value for each individual.
Your data in Stan-ready list format.
1 2 3 4 | ## Not run:
prep_pheno_data(yourdata)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.