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")