genind2diffs: genind2diffs function Generates a diffs matrix from a genind...

View source: R/genind2diffs.R

genind2diffsR Documentation

genind2diffs function Generates a diffs matrix from a genind object

Description

genind2diffs function

Generates a diffs matrix from a genind object

Usage

genind2diffs(
  genind.obj,
  ploidy = 2,
  include.indv.names = F,
  output.file = NULL
)

Arguments

genind.obj

Input genind object (see adegenet package for description of genind class). Non-biallelic sites are dropped if they exist.

ploidy

Integer indicating the ploidy of individuals

include.indv.names

If the output matrix should include the names of the individuals as rownames and column names. Default FALSE

output.file

Optional character string to save the result to a file.

Value

A list of length three with (1) a numeric matrix corresponding to the Diff matrix used for EEMS, (2) the number of individuals, (3) number of biallelic sites in genind.obj


JeffWeinell/misc.wrappers documentation built on Sept. 20, 2023, 12:42 p.m.