read_users: Read in openSNP user files from local storage.

Description Usage Arguments Details Value Examples

View source: R/download_users.R

Description

Beware, these tables can be large. Check your RAM before executing. Or possibly read in a subset of the data. This function reads in the whole kitten kaboodle.

Usage

1
read_users(name = NULL, id = NULL, path = NULL, ...)

Arguments

name

User name

id

User id

path

Path to file to read from.

...

Parameters passed on to read.table()

Details

If you specify a name or id, this function reads environment variables written in the function download_users, and then searches against those variables for the path to the file saved. Alternatively, you can supply the path.

Value

A data.frame.

Examples

1
2
3
4
5
6
## Not run: 
# dat <- read_users(name = "kevinmcc")
# head(dat)
# dat <- read_users(id = 285)

## End(Not run)

Example output



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