read.genotype: Read files for pcadapt
Description
read.genotype
returns the genotype matrix for different types of files.Usage
read.genotype(file, option = NULL, header = FALSE, sep = " ", mapheader,
mapsep = NULL)
Arguments
file
the name of the file without the extention which the data are to be read from.
option
a character string that specifies which type of data the user is willing to read.
header
a logical value indicating whether the file contains the names of the variables as its first line.
sep
the field separator character.
mapheader
a logical value indicating whether the map file contains the names of the variables as its first line.
mapsep
the field separator character for the map file.