get_col_num: Find column numbers using column names

Description Usage Arguments Value

Description

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

Usage

1
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.


cape documentation built on Feb. 10, 2021, 5:06 p.m.