download_REF: Download data from the REF 2014 web site

Description Usage Arguments Details Value Note See Also

View source: R/download.R

Description

This helper function will download and unzip an Excel (.xlsx) file containing either the full results or the Research outputs (REF2) submission data for every institution and every unit of assessment in the Research Excellence Framework 2014.

Usage

1
download_REF(type = c("results", "outputs"), destination = tempdir())

Arguments

type

Either 'outputs' or 'results'

destination

Optional directory in which to store the downloaded .xlsx file. If not supplied, it will be saved to a temporary directory

Details

Alternatively you can download the data yourself manually from the REF 2014 web site. Once downloaded, call read_excel to import the data from the spreadsheet into R.

Value

Path to the downloaded/unzipped .xlsx file of REF outputs

Note

Unfortunately there is no way to read Excel files from an unz connection, so it is necessary to save the file to disk. However, if you leave the destination to the default tempdir() then you should not need to worry too much about cleaning up the .xlsx files afterwards.

See Also

read_excel, to import downloaded data into R


Selbosh/ref2014 documentation built on Nov. 15, 2019, 4:27 a.m.