# create data file (normally done in a text editor or spreadsheet software)
cat(c("example comment line", "5t2t2t3t2", "pop1", "pop2",
"poptindtloc1tloc2", "1tJohnt102t1214",
"1tPault202t0", "2tGeorget101t121213",
"2tRingot10304t131414","1tYokot10303t120014"),
file = "genodiveExample.txt", sep = "")
# import file data
exampledata <- read.GenoDive("genodiveExample.txt")
# view data
exampledata$PopData
exampledata$Genotypes[,"loc1"]
exampledata$Genotypes[,"loc2"]
Run the code above in your browser using DataLab