drugs_risk_factors: Drugs for risk factors

Description Usage Arguments Value Examples

View source: R/drugs.R

Description

GET /drugs/risk-factors

Usage

1
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

1
2
3
4
## Not run: 
drugs_risk_factors(trait = "Body mass index")

## End(Not run)

epigraphdb documentation built on March 29, 2021, 5:11 p.m.