Learn R Programming

adegenet (version 1.4-2)

old2new: 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

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