obs_cor: Observational correlations between traits

Description Usage Arguments Value Examples

View source: R/obs_cor.R

Description

GET /obs-cor

Usage

1
obs_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 /obs-cor

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
obs_cor(trait = "Body mass index (BMI)") %>%
  dplyr::glimpse()

## End(Not run)

# Use a different threshold
## Not run: 
obs_cor(trait = "Body mass index (BMI)", cor_coef_threshold = 0.8) %>%
  dplyr::glimpse()

## End(Not run)

epigraphdb documentation built on Jan. 15, 2022, 1:09 a.m.