- 博客(3)
- 收藏
- 关注
转载 R语言 有关向量、列表、矩阵、数据框的代码示例
# Goals: A first look at R objects - vectors, lists, matrices, data frames. # To make vectors "x" "y" "year" and "names" x <- c(2,3,7,9) y <- c(9,7,3,2) year <- 1990:1993 names <- c("payal", "shraddh
2013-09-04 21:16:15 1223
原创 R语言-有关时间类型
R语言中事件类型有两类:"POSIXlt" and "POSIXct",这两类个类型的数据有不同的含义: POSIXct是存储从1970年(unix系统诞生之时?)之后到所存储日期之间的秒数,这种格式比较适合数据框存储,因此从外部读取的数据就有可能是这种类型 POSIXlt是存贮按年月天时分秒方式存储的,比较面向人类的理解 有关datetime class 的详细描述:http://
2013-09-03 15:13:10 1644
原创 R语言帮助例子注释版:hist()
##把绘图窗口分成2,2的四个小部分 op <- par(mfrow = c(2, 2)) ##island包含师姐各个大陆的面积 hist(islands) ##展示了上述直方图的结构;str用来展示任意R对象的结构 utils::str(hist(islands, col = "gray", labels = TRUE)) ##把面积开平方根然后再绘图,有12个条形柱? hist(sqrt(i
2013-09-01 17:25:20 6799
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人