Description Usage Arguments Value See Also Examples
View source: R/allphenotypes.R
Either return data.frame with all results, or output a list, then call the charicteristic by id (parameter = "id") or name (parameter = "characteristic").
1 | allphenotypes(df = FALSE, ...)
|
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: |
... |
Curl options passed on to crul::HttpClient |
data.frame of results, or list if df=FALSE
Other opensnp-fxns:
allgensnp()
,
annotations()
,
download_users()
,
fetch_genotypes()
,
genotypes()
,
phenotypes_byid()
,
phenotypes()
,
users()
1 2 3 4 5 6 7 8 9 10 11 12 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.