R/FR_Genotype.R

##  Dataset FR_Genotype
##
##' Example genotype allele dataset - a dioecious tetraploid species,
##' seven loci observed.
##'
##' The dataset is available in two forms - as a compressed data file
##' which can be loaded easily into R via the R \code{\link{data}}
##' function, i.e., \code{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 \code{data} to load the data in the reference
##' help examples, whereas the user would generally invoke the
##' \code{\link{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.
##'
##' @name FR_Genotype
##' @title Example genotype allele dataset
##' @docType data
##' @author Alexander Zwart (alec.zwart at csiro.au)
##' @keywords data
##' @examples
##'
##' \dontrun{
##' ## 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.
##' }
##'
NULL
aleczwart/PolyPatEx documentation built on May 11, 2019, 11:23 p.m.