Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

truenames

Restore true labels of an object


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

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


adegenet

Exploratory Analysis of Genetic and Genomic Data

v2.1.3
GPL (>= 2)
Authors
Thibaut Jombart [aut] (<https://orcid.org/0000-0003-2226-8692>), Zhian N. Kamvar [aut, cre] (<https://orcid.org/0000-0003-1458-7108>), Caitlin Collins [ctb], Roman Lustrik [ctb], Marie-Pauline Beugin [ctb], Brian J. Knaus [ctb], Peter Solymos [ctb], Vladimir Mikryukov [ctb], Klaus Schliep [ctb], Tiago Maié [ctb], Libor Morkovsky [ctb], Ismail Ahmed [ctb], Anne Cori [ctb], Federico Calboli [ctb], RJ Ewing [ctb], Frédéric Michaud [ctb], Rebecca DeCamp [ctb], Alexandre Courtiol [ctb] (<https://orcid.org/0000-0003-0637-2959>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.