my.read.genepop function

This reads a genepop file into R

This reads a genepop file into R

This reads a genepop file into R. It was adapted from a similar functionin adegenet.

my.read.genepop(file, ncode = 2L, quiet = FALSE)

Arguments

  • file: is the filename of the genpop file.
  • quiet: If quiet = FALSE updates will be printed. If quiet = T status updates will not be printed.
  • ncode: Do not change this argument.

Returns

  • res: A dataframe with the Population ID in column 1, the Individual ID in column 2, and the genotypes in columns following that. There is one row per individual.

References

http://adegenet.r-forge.r-project.org/

Examples

gfile<-system.file("extdata", "example.genepop.txt",package = 'fsthet') gpop<-my.read.genepop(gfile)
  • Maintainer: Sarah P. Flanagan
  • License: GPL-2
  • Last published: 2018-03-20

Useful links