drugs_risk_factors: Drugs for risk factors

View source: R/drugs.R

drugs_risk_factorsR 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)

MRCIEU/epigraphdb-r documentation built on Aug. 29, 2022, 4:05 a.m.