Fixed documentation.
[R/operatingdays.git] / R / getRemainingOpDays.R
index 93256703184ed19984d0bafc48a465a248a33b22..eae5c8716b096264ac45856198364c929d2d6136 100644 (file)
@@ -1,8 +1,13 @@
-# getRemainingOpDays
+#' getRemainingOpDays
 # This is a function that returns the remaining operating days in a month
 # It takes as arguments the country, state, date for which the request is made.
 # It returns a number
 # It currently only supports AU (Australia)
+#' @param country A country - use ISO format (currently only takes AU)
+#' @param state A state - use 2 or 3 letter abbreviation, in capitals
+#' @param date A date from which the remaining operating days in the month will be counted
+#' @return The number of remaining operating days in \code{state}, \code{country} as of \code{date}
+#' @examples getRemainingOpDays("AU","WA","2016-05-10")
 
 getRemainingOpDays <- function(country,state,date) {
   cutoff.time = "15:00"