Learn R Programming

epigraphdb (version 0.2.3)

pqtl_list: Return a list of all proteins/exposures or traits/outcomes available in the database

Description

GET /pqtl/list/

Usage

pqtl_list(flag = c("exposures", "outcomes"), mode = c("table", "raw"))

Arguments

flag

(Optional) A flag which indicates whether the list of exposures (if "exposures") or outcomes (if "outcomes") should be returned. The DEFAULT is "exposures".

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 /pqtl/list/

Examples

Run this code
# NOT RUN {
# Returns a list of available proteins (exposures)
# }
# NOT RUN {
pqtl_list()
# }
# NOT RUN {
# Returns a list of available traits (outcomes)
# }
# NOT RUN {
pqtl_list(flag = "outcomes")
# }

Run the code above in your browser using DataLab