truenames: Restore true labels of an object

Description Usage Arguments Value Author(s) See Also

Description

The function truenames returns some elements of an object (genind or genpop) using true names (as opposed to generic labels) for individuals, markers, alleles, and population.

Important: as of adegenet_2.0-0, these functions are deprecated as true labels are used whenever possible. Please use the function tab instead.

Usage

1
2
3
4
## S4 method for signature 'genind'
truenames(x)
## S4 method for signature 'genpop'
truenames(x)

Arguments

x

a genind or a genpop object

Value

If x\$pop is empty (NULL), a matrix similar to the x\$tab slot but with true labels.

If x\$pop exists, a list with this matrix (\$tab) and a population vector with true names (\$pop).

Author(s)

Thibaut Jombart t.jombart@imperial.ac.uk

See Also

tab


adegenet documentation built on Oct. 10, 2021, 1:09 a.m.