genetic_cor: Genetic correlations between traits

Description Usage Arguments Value Examples

View source: R/genetic_cor.R

Description

GET /genetic-cor

Usage

1
genetic_cor(trait, cor_coef_threshold = 0.8, mode = c("table", "raw"))

Arguments

trait

name of the trait, e.g. "body mass index"

cor_coef_threshold

correlation coefficient 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 /genetic_cor

Examples

1
2
3
4
5
6
genetic_cor(trait = "Body mass index") %>%
  dplyr::glimpse()

# Use a different threshold
genetic_cor(trait = "Body mass index", cor_coef_threshold = 0.4) %>%
  dplyr::glimpse()

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