This function converts the genetic data of an ecogen object in a hierfstat data frame.

ecogen2hierfstat(eco, pop = NULL, columns_to_numeric = FALSE, nout = 3,
  recode = c("column", "all"), ...)

Arguments

eco

Object of class "ecogen".

pop

The name of the S slot column with the groups for the hierfstat data frame.

columns_to_numeric

Recode the genetic data into numeric format? If TRUE, the functions performs the correction via eco.weight. Additional formatting parameters can be passed to this function.

recode

If recoding is TRUE, it should be performed individually (e.g., microsatellite data) for each column, or overall (e.g., SNPs). Default: "column".

...

Additional parameters passed to eco.format

Examples

# NOT RUN { data(eco.test) hiereco <- ecogen2hierfstat(eco, "pop") require("hierfstat") basic.stats(hiereco) # }