Learn R Programming

adegenet (version 1.4-2)

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.

Usage

## S3 method for class 'genind':
truenames(x)
## S3 method for class '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).

encoding

UTF-8

Examples

Run this code
data(microbov)
microbov

microbov$tab[1:5,1:5]
truenames(microbov)$tab[1:5,1:5]

Run the code above in your browser using DataLab