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

[.locusR Documentation

Overload '[' for vectors of locus objects

Description

An overload of the [ function for locus objects.

Usage

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


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


dyerlab/gstudio documentation built on Feb. 2, 2024, 8:24 p.m.