Learn R Programming

dartR (version 2.0.4)

platy: Example data set as text file to be imported into a genlight object

Description

Check ?read.genetable in pacakge PopGenReport for details on the format.

Arguments

Format

csv

Examples

Run this code
# NOT RUN {
library(PopGenReport)
read.csv( paste(.libPaths()[1],'/dartR/extdata/platy.csv',sep='' ))
platy <- read.genetable( paste(.libPaths()[1],'/dartR/extdata/platy.csv',
sep='' ), ind=1, pop=2, lat=3, long=4, other.min=5, other.max=6, oneColPerAll=FALSE,
sep='/')
platy.gl <- gi2gl(platy, parallel=FALSE)
df.loc <- data.frame(RepAvg = runif(nLoc(platy.gl)), CallRate = 1)
platy.gl@other$loc.metrics <- df.loc
gl.report.reproducibility(platy.gl)
# }

Run the code above in your browser using DataLab