phenotypes: Get openSNP phenotype data for one or multiple users.

Description Usage Arguments Value See Also Examples

View source: R/phenotypes.R

Description

Get openSNP phenotype data for one or multiple users.

Usage

1
phenotypes(userid = NA, df = FALSE, ...)

Arguments

userid

ID of openSNP user.

df

Return data.frame (TRUE) or not (FALSE). Default: FALSE

...

Curl options passed on to crul::HttpClient

Value

List of phenotypes for specified user(s).

See Also

Other opensnp-fxns: allgensnp(), allphenotypes(), annotations(), download_users(), fetch_genotypes(), genotypes(), phenotypes_byid(), users()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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)

rsnps documentation built on Jan. 28, 2022, 5:07 p.m.