Skip to content

Commit

Permalink
Add example to gtfs2sldf.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardellison committed Nov 28, 2015
1 parent d4b42e7 commit 5a90629
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/gtfs.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
#'
#' @param gtfszip String with the file path of the GTFS feed zip file
#' @export
#' @examples \dontrun{
#' downloader::download("http://www.yrt.ca/google/google_transit.zip",
#' paste0(tempdir(),"/gtfsfeed.zip"))
#' yrtgtfs <- gtfs2sldf(paste0(tempdir(),"/gtfsfeed.zip"))
#' plot(yrtgtfs,col=paste0("#",yrtgtfs$route_color))
#' }
gtfs2sldf <- function(gtfszip = "") {

if (gtfszip == "") {
Expand Down
8 changes: 8 additions & 0 deletions man/gtfs2sldf.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5a90629

Please sign in to comment.