Description Usage Arguments Value Author(s)
View source: R/read_population.R
The function reads in a text file and does the proper translations for genotypes and spatial coordinates.
1 2 3 4 5 6 7 8 9 10 | read_population(
path,
type,
locus.columns,
phased = FALSE,
sep = ",",
header = TRUE,
delim = ":",
...
)
|
path |
The path to the text file |
type |
An indication of what kind of loci that the data represent. The
following kinds are recoginzed (n.b., if you have several types load them
separately and
|
locus.columns |
A vector indicating the numerical column number for
each data type that will be treated as a |
phased |
A flag indicating the the alleles should are of known gametic phase (default=FALSE). |
sep |
The field separator for each column of the data. |
header |
A logical flag indicating if there is a header row (a good idea). |
delim |
The (optional) delimiter for alleles separators (default=":") |
... |
Optional parameters you can pass to |
A data.frame
with locus
columns pre-formatted.
Rodney J. Dyer rjdyer@vcu.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.