Learn R Programming

rsnps (version 0.0.5)

fetch_genotypes: Download genotype data for a user from 23andme or other repo.

Description

Download genotype data for a user from 23andme or other repo.

Usage

fetch_genotypes(url = url, rows = NULL)

Arguments

url
URL for the download. See example below of function use.
rows
Number of rows to read in. Useful for getting a glimpse of the data.

Value

  • Dataset for a single user.

Examples

Run this code
# get a data.frame of the users data
data <- users(df=TRUE)
head( data[[1]] ) # users with links to genome data
mydata <- fetch_genotypes(url = data[[1]][1,"genotypes.download_url"], rows=15)
mydata

Run the code above in your browser using DataLab