is_gt_col_for_fam: Which columns are genotype columns for the specified family?

Description Usage Arguments Value See Also Examples

Description

is_gt_col_for_fam uses grep to check which columns of the vars data frame contain the string "<fam>_GT".

Usage

1
is_gt_col_for_fam(vars, fam)

Arguments

vars

The data frame of vars.

fam

character: the family name

Value

an atomic vector of the indices of the vars columns that yielded a match.

See Also

grep.

Examples

1
2
3
4
## Not run: 
is_gt_col_for_fam(vars, "fam123") # assumes you have a vars data frame

## End(Not run)

bahlolab/varpr documentation built on May 11, 2019, 5:26 p.m.