Description Usage Arguments Value Author(s)
View source: R/make_mean_pephylo.R
This function saves the MetricTraitMeans.txt input file for PEPHYLO.
1 | make_mean_pephylo(data, outpath, nPC, whatSex)
|
data |
A data frame or matrix with dependent variables in columns and observations in rows. |
outpath |
A string. The path to the folder where the output file is to be saved. |
nPC |
How many PC to retain? Either an integer i, then PC 1 to i will be retained, or a vector of integers representing what PCs to retain. |
whatSex |
A logical vector of length the number of observations in the principal component, with |
Returns 1 if succeeds. Saves the output file into the specified folder.
Raphael Scherrer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.