Learn R Programming

rsnps (version 0.1.6)

allphenotypes: Get all phenotypes, their variations, and how many users have data available for a given phenotype.

Description

Either return data.frame with all results, or output a list, then call the charicteristic by id (paramater = "id") or name (paramater = "characteristic").

Usage

allphenotypes(df = FALSE, ...)

Arguments

df
Return a data.frame of all data. The column known_variations can take multiple values, so the other columns id, characteristic, and number_of_users are replicated in the data.frame. (default = FALSE)
...
Curl options passed on to GET.

Value

Data.frame of results, or list if df=FALSE

Examples

Run this code
## Not run: 
# # Get all data
# allphenotypes(df = TRUE)
# 
# # Output a list, then call the characterisitc of interest by 'id' or 'characteristic'
# datalist <- allphenotypes()
# names(datalist) # get list of all characteristics you can call
# datalist[["ADHD"]] # get data.frame for 'ADHD'
# datalist[c("mouth size","SAT Writing")] # get data.frame for 'ADHD'
# ## End(Not run)

Run the code above in your browser using DataLab