as.list.locus: Converts locus to a list

View source: R/locus.R

as.list.locusR Documentation

Converts locus to a list

Description

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

Usage

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


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


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