get_range_crude: Download records from a specified range from the Bath: Hacked...

Description Usage Arguments Value See Also Examples

View source: R/add_records.R

Description

Retrieve raw records uploaded to the datastore within a specified date range and/or from a subset of car parks.

Usage

1
get_range_crude(from = NULL, to = NULL, abbrs = NULL)

Arguments

from

Datetime object (or "YYYY-MM-DD HH:MM:SS" string) for the earliest record to retrieve.

to

Datetime object (or "YYYY-MM-DD HH:MM:SS" string) for the latest record to retrieve.

abbrs

Abbreviations of names of car parks from which to retrieve records:

as

Avon Street CP

cs

Charlotte Street CP

l

Lansdown P+R

n

Newbridge P+R

od

Odd Down P+R

p

Podium CP

sg

SouthGate General CP

sr

Southgate Rail CP

t

test car park

Value

Car parking records from the specified date range.

See Also

get_all_crude

Examples

1
2
3
4
5
6
7
8
# Records for 1st June 2016
raw_data <- get_range_crude("2016-06-01 00:00:00", "2016-06-01 23:59:59")

# All records from Podium CP since 14:30 on 1st January 2017
raw_data <- get_range_crude(from = "2017-01-01 14:30:00", abbrs = "p")

# All records from P+Rs before 2015
raw_data <- get_range_crude(to = "2014-12-31 23:59:59", abbrs = c("l", "n", "od"))

BANEScarparkinglite documentation built on July 2, 2018, 1:02 a.m.