locus-operator-index: Overload '[' for vectors of 'locus' objects

Description Usage Arguments Value Author(s) Examples

Description

An overload of the [ function for locus objects.

Usage

1
2
## S3 method for class 'locus'
x[i]

Arguments

x

An object of type locus

i

The index of the allele to grab.

Value

The allele at the ith position.

Author(s)

Rodney J. Dyer rjdyer@vcu.edu

Examples

1
2
loci <- c( locus(1:2), locus(1:2), locus( c(1,1) ) )
loci[2]

MarianaLag/Mlag documentation built on Feb. 13, 2020, 12:30 a.m.