add_label: Add a column of SNP labels to input data.frame

View source: R/locuscompare.R

add_labelR Documentation

Add a column of SNP labels to input data.frame

Description

Add a column of SNP labels to input data.frame

Usage

add_label(merged, snp)

Arguments

merged

(data.frame) Input data.frame, which is a result by merging two association studies. See the example under 'get_lead_snp()' for generation of such data.frame.

snp

(character vector) A vector of SNP rsIDs. If only labeling one SNP, this can also be a single string.

Examples

# The data.frame merged comes from the example for `get_lead_snp()`.
merged = add_label(merged, 'rs9349379')

boxiangliu/locuscomparer documentation built on Nov. 27, 2022, 7:26 a.m.