Learn R Programming

topr (version 2.0.1)

get_top_snp: Get the top hit from the dataframe

Description

get_top_snp() Get the top hit from the dataframe All other input parameters are optional

Usage

get_top_snp(df, chr = NULL)

Value

Dataframe containing the top hit

Arguments

df

Dataframe containing association results

chr

String, get the top hit in the data frame for this chromosome. If chromosome is not provided, the top hit from the entire dataset is returned.

Examples

Run this code
if (FALSE) {
get_top_snp(CD_UKBB, chr="chr1")
}

Run the code above in your browser using DataLab