sImport: Import a single diem-formatted genotype file

View source: R/internal.r

sImportR Documentation

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")

Arguments

file

Path to the diem-formatted genotype file.

ChosenInds

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

Value

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


diemr documentation built on Dec. 11, 2025, 5:07 p.m.