as.list.locus: Converts locus to a list

Description Usage Arguments Value Author(s) Examples

View source: R/locus.R

Description

This converts a locus object into a list so that you can use locus objects in a column of a list.

Usage

1
2
## S3 method for class 'locus'
as.list(x, ...)

Arguments

x

An object of type locus. This can be either a single genotype (a rare case) or a vector of genotypes (preferred).

...

Additional objects that are passed to as.data.frame.vector.

Value

A list object.

Author(s)

Rodney J. Dyer rjdyer@vcu.edu

Examples

1
2
3
loc1 <- c( locus(1:2), locus(1:2), locus( c(1,1) ) )
df <- as.list( ID=1:3, NAMED_LOCUS=loc1, loc1 )
df

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