Learn R Programming

dartR (version 1.1.11)

read.dart: Import DarT data to R

Description

Internal function called by gl.read.dart

Usage

read.dart(filename, nas = "-", topskip = NULL, lastmetric = "RepAvg")

Arguments

filename

path to file (csv file only currently)

nas

a character specifying NAs (default is "-")

topskip

a number specifying the number of rows to be skipped. If not provided the number of rows to be skipped are "guessed" by the number of rows with "*" at the beginning.

lastmetric

specifies the last non genetic column (Default is "RepAvg"). Be sure to check if that is true, otherwise the number of individuals will not match. You can also specify the last column by a number.

Value

a list of length 5. #dart format (one or two rows) #individuals, #snps, #non genetic metrics, #genetic data (still two line format, rows=snps, columns=individuals)