上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: library(raster)library(gdistance)r <- raster(nrows=3, ncols=4, xmn=0, xmx=7, ymn=0, ymx=6, crs="+proj=utm +units=m")r[] <- c(2, 2, 1, 1, 2, 2, 4, 4, 2 阅读全文
posted @ 2018-10-29 14:33 junjunang 阅读(941) 评论(0) 推荐(0) 编辑
摘要: 有时候会遇到将32位栅格数据提取属性表的操作,但是一般此类数据都是浮点型,是无法计算得到属性表的。因此我们可以利用数据管理工具下的: 复制栅格工具,在最下面选择16位即可,看自己数据情况选择signed或者unsigned类型。 导出后的数据可以计算属性表,两种方式,一种是利用工具进行;另外一种是右 阅读全文
posted @ 2018-10-10 10:35 junjunang 阅读(13964) 评论(0) 推荐(1) 编辑
摘要: 有4类操作,包括同步,备份,镜像和组 同步是前文件夹内和后文件夹内的文件同步,使得二者的所有文件保持一致,但是也可以修改不同类型文件的覆盖操作,如果左侧有文件123.txt,右侧无123.txt文件,则一般默认执行向右复制操作;如果右侧有123.txt,左侧无123.txt,则执行向左复制操作;如果 阅读全文
posted @ 2018-09-18 16:26 junjunang 阅读(202) 评论(0) 推荐(0) 编辑
摘要: chordDiagramFromMatrix(matp2,annotationTrack="grid", grid.col = c(rep('#D6D2BE',19),rep('#CEDCB7',11), rep('#C0D0E7',16)), grid.border = NA, col=trunc 阅读全文
posted @ 2018-08-21 10:32 junjunang 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(3650) 评论(0) 推荐(0) 编辑
摘要: 参考自:https://wenku.baidu.com/view/ae5f76f94b35eefdc9d3336e.html 阅读全文
posted @ 2018-06-17 09:42 junjunang 阅读(2694) 评论(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 阅读(249) 评论(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 阅读(144) 评论(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 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 高原山地环境多样性是其生物多样性形成和维持的物质基础。其中的气候条件是决定生物多样性(biodiversity)地理分布格局的主控因子之一。气候多样性(climatic diversity)能够增强区域尺度上生物多样性适应未来气候变化的能力,高气候多样性区域通常被认为是重要的生物多样性优先保护区(priority conservation areas)或生态避难所(ecological refuges)。 阅读全文
posted @ 2018-06-11 14:59 junjunang 阅读(423) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页