get_col_num: Find column numbers using column names

get_col_numR Documentation

Find column numbers using column names

Description

This is an internal function to find the column numbers of phenotypes when names are put in instead of column numbers.

Usage

get_col_num(data_mat, col_which = NULL, dim_which = 2)

Arguments

data_mat

a matrix with column names

col_which

a character string indicating which column should be identified If col_which is numeric the number is returned.

dim_which

A number indicating whether the algorithm should look in rows (1) or columns (2) for the name.

Value

A numeric value indicating the column number corresponding to the name given by col_which. If col_which was a number, col_which is returned.


TheJacksonLaboratory/cape documentation built on Feb. 12, 2024, 4:34 p.m.