getIdColIndex: Get sample ID column index.

Description Usage Arguments Value See Also

View source: R/util.R

Description

Get the index of the sample ID column in the given object. For example, in a cross object, this is the column of the phenotype data.frame with the heading 'ID' (case-insensitive). It can also be used to get the ID column index directly from a data.frame, in which case the ID column is that which has heading 'ID' (also case-insensitive).

Usage

1
2
3
4
5
6
7
getIdColIndex(x)

## S3 method for class 'cross'
getIdColIndex(x)

## S3 method for class 'data.frame'
getIdColIndex(x)

Arguments

x

An object that may contain a sample ID column.

Value

Sample ID column index.

See Also

Other cross object functions: crossesEqual, getPhenoColIndices, hasTimeSeriesPhenotypes, inferStrainIndices, inferTetradIndices, inferTimeStep, interpTimeSeries, padTimeSeries, permCross, permIndices, pull.alleles, pull.chr, pull.crosstype, pull.ind, readCrossCSV, readCrossHDF5, writeCrossCSV, writeCrossHDF5


gact/shmootl documentation built on Nov. 11, 2021, 6:23 p.m.