View source: R/classes_methods.R
SubsetByTaxon | R Documentation |
This function is used for removing some of the taxa from a dataset stored in a
RADdata
object.
SubsetByTaxon(object, ...)
## S3 method for class 'RADdata'
SubsetByTaxon(object, taxa, ...)
object |
A |
taxa |
A character or numeric vector indicating which taxa to retain in the output. |
... |
Additional arguments (none implemented). |
This function may be used for subsetting a RADdata
object either
immediately after data import, or after additional analysis has been
performed. Note however that estimation of allele frequencies, genotype
prior probabilities, PCA, etc. are very dependent on what samples
are included in the dataset. If those calculations have already been
performed, the results will be transferred to the new object but not
recalculated.
A RADdata
object containing only the taxa listed in taxa
.
Lindsay V. Clark
SubsetByLocus
# load data for this example
data(exampleRAD)
exampleRAD
# just keep the first fifty taxa
subsetRAD <- SubsetByTaxon(exampleRAD, 1:50)
subsetRAD
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.