drugs_risk_factors {epigraphdb}R Documentation

Drugs for risk factors

Description

GET /drugs/risk-factors

Usage

drugs_risk_factors(trait, pval_threshold = 1e-08, mode = c("table", "raw"))

Arguments

trait

A trait name

pval_threshold

P-value threshold

mode

If mode = "table", returns a data frame (a tibble as per tidyverse convention). If mode = "raw", returns a raw response from EpiGraphDB API with minimal parsing done by httr.

Value

Data from GET /drugs/risk-factors

Examples

## Not run: 
drugs_risk_factors(trait = "Body mass index")

## End(Not run)

[Package epigraphdb version 0.2.3 Index]