phenotypes | R Documentation |
Get openSNP phenotype data for one or multiple users.
phenotypes(userid = NA, df = FALSE, ...)
userid |
ID of openSNP user. |
df |
Return data.frame ( |
... |
Curl options passed on to crul::HttpClient |
List of phenotypes for specified user(s).
Other opensnp-fxns:
allgensnp()
,
allphenotypes()
,
annotations()
,
download_users()
,
fetch_genotypes()
,
genotypes()
,
phenotypes_byid()
,
users()
## Not run:
phenotypes(userid = 1)
phenotypes(userid = "1,6,8", df = TRUE)
phenotypes(userid = "1-8", df = TRUE)
# coerce to data.frame
library(plyr)
df <- ldply(phenotypes(userid = "1-8", df = TRUE))
head(df)
tail(df)
# pass on curl options
phenotypes(1, verbose = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.