Learn R Programming

rbefdata (version 0.3.5)

bef.portal.get.datasets.for_proposal: Fetch primary data in CSV format from a BEFdata portal paperproposal

Description

This function fetches data associated to a paperproposal on a BEFdata portal. By default it will fetch all associated files in CSV format next to the informations available like the title, the download URL and the id of the datasets.

Usage

bef.portal.get.datasets.for_proposal(id, curl = getCurlHandle(), ...)

Arguments

id
This is the ID of a paper proposal. You can download all datasets in one turn given the ID.
curl
If using in a loop, call getCurlHandle() first and pass the returned value in here (avoids unnecessary footprint)
...
This are other arguments passed to getURLContent

Value

The function returns a list of raw data attached to a proposal. An error is thrown when the proposal is not found or you don't have the access rights for it.

Details

You need to provide the function with a proposal id which you can find in the URL of the proposal and your user credentials. You can find the credentials inside of your profile page on the BEFdata portal. The credentials ensure you have the rights to download the data.

The function returns a list object which you can store to a variable as shown in the examples below.

Examples

Run this code
## Not run: 
# 	  prop1 = bef.portal.get.datasets.for_proposal(proposal = 8)
#  	## End(Not run)

Run the code above in your browser using DataLab