Learn R Programming

dartR (version 1.1.11)

gl.drop.loc: Remove specified loci from a genelight {adegenet} object

Description

This script deletes selected loci from the nominated dataset.

Usage

gl.drop.loc(x, loc.list, v = 2)

Arguments

x

-- name of the genlight object containing SNP genotypes or a genind object containing presence/absence data [required]

loc.list

-- vector of loci names to be droped.

v

-- verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log ; 3, progress and results summary; 5, full report [default 2]

Value

A genlight object with the reduced data

Examples

Run this code
# NOT RUN {
   gl <- gl.drop.loc(testset.gl, loc.list=c("100049687|12-A/G","100050106|50-G/A"))

# }

Run the code above in your browser using DataLab