old2new {adegenet}R Documentation

Convert objects with obsolete classe into new objects

Description

Adegenet classes changed from S3 to S4 types starting from version 1.1-0. old2new has two methods for genind and genpop objects, so that old adegenet objects can be retrieved and used in recent versions.

Usage

## S4 method for signature 'genind':
old2new(object)
## S4 method for signature 'genpop':
old2new(object)

Arguments

object a genind or genpop object in S3 version, i.e. prior adegenet_1.1-0

Details

Optional content but $pop and $pop.names will not be converted. These are to be coerced into a list and set in the @other slot of the new object.

Author(s)

Thibaut Jombart jombart@biomserv.univ-lyon1.fr


[Package adegenet version 1.2-2 Index]