FR_Genotype {PolyPatEx} | R Documentation |
Example genotype allele dataset
Description
Example genotype allele dataset - a dioecious tetraploid species, seven loci observed.
Details
The dataset is available in two forms - as a compressed data file
which can be loaded easily into R via the R data
function, i.e., data(FR_Genotype)
, and as a CSV
(Comma-Separated-Value, a plain text format) file, to provide an
example of the required CSV format.
Note that a technicality of R's package building process requires
the use of data
to load the data in the reference
help examples, whereas the user would generally invoke the
inputData
function to load their own data from file.
An example of the latter is demonstrated in the example section on
this page, but is not run.
Author(s)
Alexander Zwart (alec.zwart at csiro.au)
Examples
## Not run:
## To locate this dataset in your filesystem, use:
gDataFile <- system.file("extdata/FR_Genotype.csv",
package="PolyPatEx")
print(gDataFile)
## To load this file using PolyPatEx's 'inputData' function, use:
gData <- inputData(gDataFile,
numLoci=7,
ploidy=4,
dataType="genotype",
dioecious=TRUE,
mothersOnly=TRUE)
## ...or use 'mothersOnly=FALSE' if you wish to retain
## non-maternal females in the dataset.
## gData now contains the checked and preprocessed allele dataset,
## ready to be passed to other PolyPatEx analysis functions.
## End(Not run)
[Package PolyPatEx version 0.9.2 Index]