-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
59 lines (43 loc) · 1.39 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
#output: word_document
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
if(!knitr::is_html_output()) options(width = 74)
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# RZonar
<!-- badges: start -->
<!-- badges: end -->
RZonar makes it easy to retrieve and cleanup data from the Zonar API.
## Installation
The development version of RZonar is available from GitHub. Install with:
``` r
# install.packages("remotes")
remotes::install_github("BostonPublicSchools/RZonar")
```
## Example
This is a basic example which shows you how to retrieve all schedule events for
a specified time period:
```{r example}
library(RZonar)
sched_data <- zonar_get_schedules(
start = paste(Sys.Date(), "07:00:00"),
end = paste(Sys.Date(), "07:15:00"))
dplyr::glimpse(sched_data[0,])
```
The data returned from the Zonar API is not always formatted conveniently. RZonar
also provides convenience functions to post-process data returned from the API:
```{r postprocess}
dplyr::glimpse(zonar_cleanup(sched_data)[0,])
```
## Documentation
All exported functions are documented and the package includes vignettes to help
you understand how the package is structured and what it is good for. On-line
documentation can be found at https://bostonpublicschools.github.io/RZonar/.