摘要: 1.Web数据 a. 拥有API的网站 > library(WDI)载入需要的程辑包:RJSONIO> library(RJSONIO)> library(WDI)> wdi_datasets <- WDIsearch()> head(wdi_datasets) indicator [1,] "BG 阅读全文
posted @ 2017-12-04 18:35 陌上少年 阅读(806) 评论(0) 推荐(1) 编辑
摘要: R中自带3个日期和时间类:POSIXct、POSIXlt 和 Date。 1. POSIX日期和时间 函数Sys.time将以POSIXct的形式返回当前的日期和时间 > (now_ct <- Sys.time())[1] "2017-12-04 16:55:31 CST"> class(now_c 阅读全文
posted @ 2017-12-04 17:05 陌上少年 阅读(476) 评论(0) 推荐(1) 编辑
摘要: 1. 加载包 > library(lattice) > dotplot(variety ~ yield|site,data=barley,groups=year) Immer's barley 数据集点状图 2. 使用search函数查看所有已加载了的包 > search() [1] ".Globa 阅读全文
posted @ 2017-12-04 16:49 陌上少年 阅读(665) 评论(0) 推荐(1) 编辑