Learn R Programming

gesis (version 0.2.2)

download_dataset: Download a Gesis data set

Description

Download a Gesis data set

Usage

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.

Value

Nothing

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

Examples

Run this code
# NOT RUN {
s <- login("my_gesis_username", "my_gesis_password")
download_dataset(s, doi = "0078")
# }

Run the code above in your browser using DataLab