gtypes2loci: Convert Between 'gtypes' And 'loci' objects.

Description Usage Arguments Author(s) See Also Examples

View source: R/gtypes2loci.R

Description

Convert a gtypes object to a loci object.

Usage

1
2
3
gtypes2loci(x)

loci2gtypes(x, description = NULL)

Arguments

x

a gtypes or loci formatted object.

description

a label for the gtypes object (optional).

Author(s)

Eric Archer eric.archer@noaa.gov

See Also

initialize.gtypes, df2gtypes, sequence2gtypes, as.data.frame.gtypes, gtypes2genind

Examples

1
2
3
4
5
6
7
8
9
data(msats.g)

# Convert to loci
lc <- gtypes2loci(msats.g)
lc

# Convert to gtypes
gt <- loci2gtypes(lc)
gt 

strataG documentation built on Feb. 28, 2020, 9:07 a.m.