downloadREDCap: Download REDCap Data

View source: R/downloadREDCap.r

downloadREDCapR Documentation

Download REDCap Data

Description

This function downloads REDCap data from a specified project and saves it as a CSV file. If no file path has previously been set, it defaults to the working directory of the user

Usage

downloadREDCap(password, country, filepath = NULL)

Arguments

password

A character string representing the API token for the desired REDCap project.

country

A character string representing the country/project

filepath

A character string representing the desired file path in which the downloaded data will be saved.

Value

A CSV file containing the imported REDCap data.

Examples

## Not run: 
# Please provide your own API token to use this example
# If you haven't already, you can set and retrieve password for REDCap using
# the createKeyring() or grabKeyring function. 
# Run this function or visit it's vignette in epiuf for more information.

# Begin the download process using another function
accessREDCap(country)

## End(Not run)

Epiconcept-Paris/STRAP-epiuf documentation built on Aug. 5, 2024, 3:41 a.m.