#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