Description Usage Arguments Author(s) Examples
This function converts the genetic data of an ecogen object into a hierfstat data frame.
1 2 3 4 5 6 7 8 9 10 |
eco |
Object of class "ecogen". |
pop |
The name of the S slot column with the groups for the hierfstat data frame. |
to_numeric |
Recode the genetic data into numeric format? If TRUE,
the functions performs the correction via |
nout |
Number of digits in the output when to_numeric = TRUE. |
recode |
Recode mode when to_numeric = TRUE: "all" for recoding the data considering all the individuals values at once (e.g., protein data), "column" for recoding the values by column (e.g., microsatellite data), "paired" for passing the values of allelic states and corresponding replacement values, using the replace_in and replace_out arguments (e.g. replace_in = c("A", "T", "C", "G"), replace_out = c(1,2,3,4)). |
replace_in |
vector with states of the data matrix to be replaced, when recode = "paired". This argument must be used in conjunction with the argument "replace_out". |
replace_out |
vector with states of the data matrix used for replacement, when recode = "paired". This argument must be used in conjunction with the argument "replace_in". |
... |
Additional parameters passed to |
Leandro Roser learoser@gmail.com
1 2 3 4 5 6 7 8 9 | ## Not run:
data(eco.test)
hiereco <- ecogen2hierfstat(eco, "pop", to_numeric = TRUE)
require("hierfstat")
basic.stats(hiereco)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.