Permalink
Browse files

rewrote documentation to export S3 methods

  • Loading branch information...
1 parent 8343359 commit 0e3771845845a214a8a4558f138397c3f2aa5a18 @garrettgman garrettgman committed Oct 1, 2012
Showing with 7 additions and 4 deletions.
  1. +6 −3 R/update.r
  2. +1 −1 man/ymd.Rd
View
@@ -39,7 +39,8 @@
#' # "2009-02-10 00:10:03 CST"
NULL
-#' @S3method update POSIXct
+#' @export
+#' @method update POSIXct
update.POSIXct <- function(object, years = year(object),
months = month(object), days = mday(object),
mdays = mday(object), ydays = yday(object),
@@ -90,7 +91,8 @@ update.POSIXct <- function(object, years = year(object),
force_tz(utc, tzone = tzs)
}
-#' @S3method update Date
+#' @export
+#' @method update Date
update.Date <- function(object, years = year(object), months = month(object),
days = mday(object), mdays = mday(object), ydays = yday(object), wdays =
wday(object), hours = hour(object), minutes = minute(object), seconds =
@@ -112,7 +114,8 @@ update.Date <- function(object, years = year(object), months = month(object),
seconds = seconds, tzs = tzs))
}
-#' @S3method update POSIXlt
+#' @export
+#' @method update POSIXlt
update.POSIXlt <- function(object, years = year(object), months = month(object),
days = mday(object), mdays = mday(object), ydays = yday(object), wdays =
wday(object), hours = hour(object), minutes = minute(object), seconds =
View
@@ -74,7 +74,7 @@ mdy(010210)
## heterogenuous formats in a single vector:
x <- c(20090101, "2009-01-02", "2009 01 03", "2009-1-4",
- "2009-1, 5", "Created on 2009 1 6", "200901 !!! 07", "200901-8")
+ "2009-1, 5", "Created on 2009 1 6", "200901 !!! 07")
ymd(x)
## What lubridate might not handle:

0 comments on commit 0e37718

Please sign in to comment.