lubridate

要從 CRAN 安裝包:

install.packages("lubridate")

要從 Github 安裝開發版本:

library(devtools)
# dev mode allows testing of development packages in a sandbox, without interfering
# with the other packages you have installed.
dev_mode(on=T)
install_github("hadley/lubridate")
dev_mode(on=F)

要獲得有關 lubridate 包裝的插圖:

vignette("lubridate")

要獲得有關某些功能的幫助 foo

help(foo)     # help about function foo
?foo          # same thing

# Example
# help("is.period")
# ?is.period

要獲取函式 foo 的示例:

example("foo")

# Example
# example("interval")