GF_Phenotype {PolyPatEx}R Documentation

Example phenotype allele dataset

Description

Example ‘phenotype’ allele dataset - a monoecious non-selfing hexaploid 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:

pDataFile <- system.file("extdata/GF_Phenotype.csv",
                         package="PolyPatEx")
print(pDataFile)

## To load this file using PolyPatEx's 'inputData' function use:

pData <- inputData(pDataFile,
                  numLoci=7,
                  ploidy=6,
                  dataType="phenotype",
                  dioecious=FALSE,
                  selfCompatible=FALSE)

## pData 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]