getRowsXY: Extract rows matching to a pair of keys k1 and k2.

View source: R/func__getRowsXY.R

getRowsXYR Documentation

Extract rows matching to a pair of keys k1 and k2.

Description

This is a handy small tool to help investigating connections between two objects. A typical usage is to extract or display results relating to alleles x and y.

Usage

getRowsXY(df, k1 = NULL, k2 = NULL, c1 = "y", c2 = "x")

Arguments

df

a data frame whose rows are to be extracted.

k1

a character, numeric or integer type key being searched against the column c1 (see below).

k2

the same kind of key being searched against the column c2 (see below).

c1

name or index of the first value column (variable) in df. Default: "y".

c2

name or index of the second key column in df. Default: "x".

Author(s)

Yu Wan (wanyuac@126.com)

Examples

assoc <- findPhysLink(...)
z <- getRowsXY(df = assoc[["assoc"]], k1 = "IntI1_1.1", k2 = "SulI_1616", c1 = "y", c2 = "x")
z <- getRowsXY(df = assoc[["assoc"]], k1 = "IntI1_1.1", k2 = "SulI_1616", c1 = 1, c2 = 2)


wanyuac/GeneMates documentation built on Aug. 12, 2022, 7:37 a.m.