resolveChosenInds: Resolve ChosenInds from a diem-formatted genotype file

View source: R/internal.r

resolveChosenIndsR Documentation

Resolve ChosenInds from a diem-formatted genotype file

Description

Extracts the number of individuals encoded in the first line of a diem-formatted genotype file and returns the corresponding index vector. The first line contains one character per individual plus an initial label, so the valid indices are 1:(nchar(line) - 1).

Usage

resolveChosenInds(file)

Arguments

file

Character path to a diem-formatted genotype file.

Value

An integer vector of indices corresponding to individuals in the file.


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