import_day: import_day

Description Usage Arguments Details Value Examples

View source: R/import.R

Description

Import trajectory data for one day.

Usage

1
import_day(day, return = c("clean", "anomalous", "all"), future_cutoff = 24)

Arguments

day

The day for which to import the data (as a string of the form "YYYY-MM-DD").

return

The type of data to return (one of "clean", "anomalous", "all). Defaults to "clean".

future_cutoff

The next-day cutoff (in hours) past which observations are categorized as "anomalous", since rides may last past midnight. Defaults to 24.0 hours.

Details

Import trajectory data for a given day. The user can choose to import the raw data, the clean data (i.e. the raw data minus any anomalous observations), or the anomalous data.

Value

A tibble of available trajectory data for that specific day.

Examples

1
2
3
4
## Not run: 
june_28_2018 <- import_day("2018-06-28", return = "all")

## End(Not run)

Amherst-Statistics/valleybikeData documentation built on Sept. 8, 2021, 5:48 a.m.