download_data: Gets most recent day

Description Usage Arguments Value

View source: R/download.r

Description

Gets most recent day

Usage

1
download_data(country, house, date = Sys.Date(), file)

Arguments

country

a character of length one giving the two-letter code representing the country, e.g. EN for England

house

a numeric of length one giving the house id

date

a vector of dates in the form 'YYYY-MM-DD' or Date objects for which to retrieve data. Default = today.

file

a character giving the path to save the results. If not specified, the default file name from the server is used. Must be same length as date

Value

the name of the file holding the data; if there's an error this is an empty string


jkeirstead/suslabs documentation built on May 19, 2019, 11:41 a.m.