Skip to content

Commit

Permalink
Add stations_all example, update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
steffilazerte committed Jan 2, 2018
1 parent 5a3b6b6 commit 1645a34
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
18 changes: 14 additions & 4 deletions R/stations.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#' Get available stations
#'
#' This function can be used to download a Station Inventory CSV file from
#' Environment Canada. Note that the 'stations' data set included in this
#' package contains station data downloaded when the package was last compiled,
#' so it may not be necessary to call this function (and this function may take
#' a few minutes to run).
#' Environment and Climate Change Canada. This is only necessary if the station
#' you're interested was only recently added. The 'stations' data set included
#' in this package contains station data downloaded when the package was last
#' compiled. This function may take a few minutes to run.
#'
#' @details
#' URL defaults to
Expand All @@ -22,6 +22,16 @@
#' @return A tibble containing station names, station ID codes and dates of
#' operation
#'
#' @examples
#'
#' \dontrun{
#' # Update stations data frame
#' s <- stations_all()
#'
#' # Use new data frame to search for stations
#' stations_search("Winnipeg", stn = s)
#' }
#'
#' @export

stations_all <- function(url = NULL,
Expand Down
19 changes: 15 additions & 4 deletions man/stations_all.Rd

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

0 comments on commit 1645a34

Please sign in to comment.