rep.locus: Replicate a locus

Description Usage Arguments Value Author(s) Examples

View source: R/locus.R

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

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

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

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