Learn R Programming

PopGenReport (version 3.1)

pops2genind: Function converts pops to a genind object

Description

converts pops into genind (to calculate Fst etc.)

Usage

pops2genind(x, locs = NULL, n.cov = 3)

Value

a spatial genind object

Arguments

x

pops object (a list of pop)

locs

named coordinates of locations

n.cov

number of covariates (defaults to 3)