Learn R Programming

poppr (version 2.1.1)

as.snpclone: Create a snpclone object from a genlight object.

Description

Wrapper for snpclone initializer.

Usage

as.snpclone(x, ..., parallel = require("parallel"), n.cores = NULL, mlg,
  mlgclass = TRUE)

Arguments

x
a genlight or snpclone object
...
arguments to be passed on to the genlight constructor. These are not used if x is not missing.
parallel
should the parallel package be used to construct the object?
n.cores
how many cores should be utilized? See documentation for genlight for details.
mlg
a vector of multilocus genotypes or an object of class MLG for the new snpclone object.
mlgclass
if TRUE (default), the multilocus genotypes will be represented as an MLG object.

Examples

Run this code
(x <- as.snpclone(glSim(100, 1e3, ploid=2)))

Run the code above in your browser using DataLab