upd_log: Scrapes Cal Poly UPD's Activity Log from the department's...

Description Usage Arguments Value Examples

View source: R/cp_upd.R

Description

Scrapes Cal Poly UPD's Activity Log from the department's website and converts it into a useable dataframe

Usage

1
upd_log(start = "oldest", end = "newest")

Arguments

start

A string with the date to start collecting reports from. Please use "YYYY-MM-DD" format. Keep in mind that the online log only goes back 60 days from the current date. Default is "oldest" and starts collecting from the oldest available report

end

A string with the date to finish collecting reports from.Please use "YYYY-MM-DD" format. Keep in mind that the online log only goes back 60 days from the current date. Default is "newest" and stops collecting from the most recent report

Value

A data frame with each row containing the information for one entry from the log. If a single entry had mulitple inicident types, then there is one row for each incident type, so take care when reporting total number of incidents.

Examples

1
upd_log(start = "2020-05-22")

srhen/mustangnews documentation built on June 15, 2020, 3:45 a.m.