Learn R Programming

cape (version 3.1.2)

get_marker_idx: Get original indices for markers

Description

Given a vector of marker names or numbers, this function returns the indices in the genotype matrix for each marker.

Usage

get_marker_idx(data_obj, markers)

Value

A vector the same length as the input markers vector indicating the index of each marker

Arguments

data_obj

a Cape object

markers

A vector of marker names