Learn R Programming

rsnps (version 0.1.6)

genotypes: Get genotype data for one or multiple users.

Description

Get genotype data for one or multiple users.

Usage

genotypes(snp = NA, userid = NA, df = FALSE, ...)

Arguments

snp
SNP name.
userid
ID of openSNP user.
df
Return data.frame (TRUE) or not (FALSE) - default = FALSE.
...
Curl options passed on to GET.

Value

List (or data.frame) of genotypes for specified user(s) at a certain SNP.

Examples

Run this code
## Not run: 
# genotypes(snp='rs9939609', userid=1)
# genotypes('rs9939609', userid='1,6,8', df=TRUE)
# genotypes('rs9939609', userid='1-2', df=FALSE)
# ## End(Not run)

Run the code above in your browser using DataLab