
Last chance! 50% off unlimited learning
Sale ends in
ecogen(XY = data.frame(), P = data.frame(), G = data.frame(),
E = data.frame(), S = data.frame(), C = data.frame(), missing = c("0",
"NA", "MEAN"), ploidy = 2, ...)
df2genind
function.df2genind
when
G input is a data.frame. Else, when data is of classes "DNAbin" or
"alignment", this function can operate over missing with the same
three values ("0", "NA", df2genind
when G data is of class "data.frame", otherwise are passed to
DNAbin2genind
when G data is ofdf2genind
#Example with G data of class "data.frame", corresponding to
#microsatellites of a diploid organism:
data(eco.test)
eco <- ecogen(XY = coordinates, P = phenotype, G = genotype,
E = environment, S = as.data.frame(structure))
eco <- eco.sortalleles(eco, 1)
#Example with G data of class "data.frame", corresponding to a
#presence - absence molecular marker:
dat <- sample(c(0,1),100,rep = TRUE)
dat <- data.frame(matrix(dat,10,10))
eco <- ecogen(G = dat)
#Example with G data of class "DNAbin":
require(ape)
data(woodmouse)
G <- woodmouse
eco <- ecogen( G = G)
#Example with G data of class "alignment":
require(seqinr)
data(mase)
G <- mase
eco <- ecogen( G = G)
Run the code above in your browser using DataLab