Learn R Programming

PopGenome (version 2.7.5)

set.outgroup-methods: Define an outgroup

Description

This generic function defines the outgroup by matching the specified vector against each region.

Usage

# S4 method for GENOME
set.outgroup(object,new.outgroup=FALSE, diploid=FALSE)

Arguments

object

an object of class "GENOME"

new.outgroup

a vector of outgroup individuals

diploid

if diploid data is present

Examples

Run this code
# NOT RUN {
# GENOME.class <- readData("\home\Alignments")
# outgroup <- c("seq1","seq2")
# GENOME.class <- set.outgroup(GENOME.class,new.outgroup=outgroup)
# GENOME.class <- neutrality.stats(GENOME.class)
# }

Run the code above in your browser using DataLab