Learn R Programming

diemr (version 1.5.2)

sImport: Import a single diem-formatted genotype file

Description

Reads a diem genotype file, splits character data into a matrix, and optionally subsets individuals. Unknown genotypes (U) are converted to _.

Usage

sImport(file, ChosenInds = "all")

Value

A character matrix with individuals in rows and markers in columns.

Arguments

file

Path to the diem-formatted genotype file.

ChosenInds

A vector of individual indices to keep, or "all" to retain all individuals.