Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


rsnps (version 0.2.0)

download_users: Download openSNP user files.

Description

Download openSNP user files.

Usage

download_users(name = NULL, id = NULL, dir = "~/", ...)

Arguments

name

User name

id

User id

dir

Directory to save file to

...

Curl options passed on to GET.

Value

File downloaded to directory you specify (or default), nothing returned in R.

Examples

Run this code
# NOT RUN {
# Download a single user file, by id
download_users(id = 14)

# Download a single user file, by user name
download_users(name = 'kevinmcc')

# Download many user files
lapply(c(14,22), function(x) download_users(id=x))
read_users(id=14, nrows=5)
# }

Run the code above in your browser using DataLab