Learn R Programming

repmis (version 0.2.4)

source_DropboxData: Load plain-text data from Dropbox non-Public folders

Description

source_DropboxData loads plain-text formatted data stored on Dropbox in a non-Public folder.

Usage

source_DropboxData(file, key, sep, header)

Arguments

file
The plain-text formatted data's file name as a character string.
key
The file's Dropbox key as a character string. This can be found by clicking "Share Link". The key will then be listed as part of the URL directly after "https://www.dropbox.com/s/" and before the file name.
sep
The separator method for the data. For example, to load comma-separated values data (CSV) use sep = ",". To load tab-separated values data (TSV) use sep = "t".
header
Logical, whether or not the first line of the file is the header (i.e. variable names).

Value

  • a data frame

source

Based on source_url from the Hadley Wickham's devtools package and url_dl from the qdap package. Data from: Gandrud, Christopher. 2012. "The Diffusion of Financial Supervisory Governance Ideas." Review of International Political Economy: 1-36.

Details

Loads plain-text data (e.g. CSV, TSV) data from a Dropbox non-public folder. To download data from a Drobpox Public folder simply use read.table, giving the public URL as the file name.

See Also

httr and read.table

Examples

Run this code
# Download Financial Regulatory Governance data (see Gandrud 2012)
FinData <- source_DropboxData(file = "fin_research_note.csv",
								 key = "exh4iobbm2p5p1v",
				 				 sep = ",", header = TRUE)

Run the code above in your browser using DataLab