rep.locus: Replicate a locus

View source: R/locus.R

rep.locusR Documentation

Replicate a locus

Description

A quick replacement for rep so it does not replicate a locus object as a character so we can use functions like outer efficiently.

Usage

## S3 method for class 'locus'
rep(x, times, ...)

Arguments

x

An object of type character

times

The number of times to replicate this

...

Ignored

Value

A vector of locus objects

Author(s)

Rodney J. Dyer rjdyer@vcu.edu

Examples


loc1 <- locus( c("A","B"))
rep(loc1, times=4)

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