06 2018 档案

摘要:apply(a,b,c) a是矩阵 b是行或列的代表,1是行,2是列 c是执行函数,如求和-sum,求平均-mean,求-range tapply(a,b,c) a是一个一维数据, 如 1,2,3,4,5,6 b是和a等长度的一维数据, 如 a,a,b,c,b,c c是执行函数,如求和-sum,结果 阅读全文
posted @ 2018-06-17 11:08 junjunang 阅读(3654) 评论(0) 推荐(0) 编辑
摘要:参考自:https://wenku.baidu.com/view/ae5f76f94b35eefdc9d3336e.html 阅读全文
posted @ 2018-06-17 09:42 junjunang 阅读(2787) 评论(0) 推荐(0) 编辑
摘要:#中文 UTF-8编码 3.4.0library(Hmisc)mydata = read.table('clipboard',header = T)head(mydata)mycol=c(rgb(1,0,0,0.3),'cadetblue','darkseagreen', 'aquamarine3' 阅读全文
posted @ 2018-06-15 17:29 junjunang 阅读(261) 评论(0) 推荐(0) 编辑
摘要:n = 100g = 6 set.seed(g)d <- data.frame(x = unlist(lapply(1:g, function(i) rnorm(n/g, runif(1)*i^2))), y = unlist(lapply(1:g, function(i) rnorm(n/g, r 阅读全文
posted @ 2018-06-15 09:46 junjunang 阅读(145) 评论(0) 推荐(0) 编辑
摘要:distancePointLine <- function(x, y, slope, intercept) { ## x, y is the point to test. ## slope, intercept is the line to check distance. ## ## Returns 阅读全文
posted @ 2018-06-15 09:46 junjunang 阅读(638) 评论(0) 推荐(0) 编辑
摘要:高原山地环境多样性是其生物多样性形成和维持的物质基础。其中的气候条件是决定生物多样性(biodiversity)地理分布格局的主控因子之一。气候多样性(climatic diversity)能够增强区域尺度上生物多样性适应未来气候变化的能力,高气候多样性区域通常被认为是重要的生物多样性优先保护区(priority conservation areas)或生态避难所(ecological refuges)。 阅读全文
posted @ 2018-06-11 14:59 junjunang 阅读(437) 评论(0) 推荐(0) 编辑
摘要:主要参考自: https://blog.csdn.net/xmuecor/article/details/51462172 library(showtext)showtext.auto(enable = TRUE) font_add('times', 'times.ttf') #添加该字体font_ 阅读全文
posted @ 2018-06-11 14:55 junjunang 阅读(1287) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示