download_dataset: Download a Gesis data set

Description Usage Arguments Details Value Examples

View source: R/gesis.R

Description

Download a Gesis data set

Usage

1
2
download_dataset(s, doi, path = ".", filetype = ".dta", purpose = 1,
  quiet = FALSE)

Arguments

s

A session object created with login()

doi

The unique identifier(s) for the data set(s)

path

Directory to which to download the file

filetype

The filetype to download (usually available: .dta/.por/.sav)

purpose

The purpose for downloading the data. See details.

quiet

Whether to output download message.

Details

Datasets reposited with GESIS are uniquely identified with a numberic identifier called a "DOI". This identifier appears both in the URL for a dataset's website, and on the website itself.

In addition to accepting the terms of use, you need to input a purpose for downloading a data set. The options are as follows:

1. for scientific research (incl. PhD) 2. for reserach with commercial mandate 3. for teaching as lecturer 4. for my academic studies 5. for my final exam (e.g. bachelor or master) 6. for professional training and qualification

Value

Nothing

Examples

1
2
3
## Not run: s <- login("my_gesis_username", "my_gesis_password")
download_dataset(s, doi = "0078")
## End(Not run)

gesis documentation built on April 25, 2019, 1:06 a.m.