allgensnp: Get openSNP genotype data for all users at a particular snp.

View source: R/allgensnp.R

allgensnpR Documentation

Get openSNP genotype data for all users at a particular snp.

Description

Get openSNP genotype data for all users at a particular snp.

Usage

allgensnp(snp = NA, usersubset = FALSE, ...)

Arguments

snp

(character) A SNP name

usersubset

Get a subset of users, integer numbers, e.g. 1-8 (default: none)

...

Curl options passed on to crul::HttpClient

Value

data.frame of genotypes for all users at a certain SNP

See Also

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

Examples

## Not run: 
x <- allgensnp(snp = "rs7412")
head(x)

## End(Not run)

ropensci/rsnps documentation built on July 31, 2023, 11:11 a.m.