上一页 1 ··· 258 259 260 261 262 263 264 265 266 ··· 408 下一页
摘要: 1、生成测试数据 root@PC1:/home/test# ls a.txt root@PC1:/home/test# cat a.txt ## 测试数据 1 2 3 4 5 2、xargs实现 root@PC1:/home/test# ls a.txt root@PC1:/home/test# c 阅读全文
posted @ 2022-03-22 21:48 小鲨鱼2018 阅读(578) 评论(0) 推荐(0)
摘要: 1、选种需要注释的代码, ctrl + shift + c进行注释, 再次选中,执行ctrl + shift + c则取消注释 (1)选中: (2)、执行ctrl + shift + c进行注释 (3)选中 4、执行ctrl + shift + c,取消注释 阅读全文
posted @ 2022-03-21 10:23 小鲨鱼2018 阅读(1929) 评论(0) 推荐(0)
摘要: 1、测试1 >>> seq = 'ATGTGACCCTGATTTTGAATGatgAtgAtGaTGaTg' ## 定义测试字符串 >>> type(seq) <class 'str'>= 使用find查找: >>> seq.find('ATG') ## 返回查找字符串的第一个索引 0 >>> se 阅读全文
posted @ 2022-03-20 23:21 小鲨鱼2018 阅读(1204) 评论(0) 推荐(0)
摘要: 1、测试文件 root@PC1:/home/test3# ls root@PC1:/home/test3# touch a.txt b.txt ## 测试文件 root@PC1:/home/test3# ls a.txt b.txt root@PC1:/home/test3# lsattr a.tx 阅读全文
posted @ 2022-03-19 23:20 小鲨鱼2018 阅读(94) 评论(0) 推荐(0)
摘要: 1、测试 > par(mfrow=c(2,2)) > plot(1:10, main = "001") > plot(1:10, main = "002", xaxt = "n") ## 去除x轴 > plot(1:10, main = "003", yaxt = "n") ## 去除y轴 > pl 阅读全文
posted @ 2022-03-19 16:03 小鲨鱼2018 阅读(3561) 评论(0) 推荐(0)
摘要: 1、 #ECDF指的是Emperical Cumulative Density Function,即经验累积概率密度函数 > test <- rnorm(1000,mean=172,sd=12) ## 生成符合随机正态分布的1000个数, 平均值为172, 标准差为12 > length(test) 阅读全文
posted @ 2022-03-19 12:34 小鲨鱼2018 阅读(3619) 评论(0) 推荐(0)
摘要: 1、直接测试 > layout(matrix(c(0,1,2,3),2,2,byrow=TRUE)) ## matrix划分画布,按行排列,两行两列的矩阵, 0表示空出来,然后按照数字顺序进行绘图 > plot(1:10,main = "001") > plot(1:10,main = "002") 阅读全文
posted @ 2022-03-19 11:43 小鲨鱼2018 阅读(1084) 评论(0) 推荐(0)
摘要: 1、空白 > x <- 1:10 > y <- x^2 > plot(x,y) 2、expression用于上标 > x <- 1:10 > y <- x^2 > plot(x,y, ylab = expression(x^y)) ## 用于上标 3、用于下标 > plot(1:10, ylab = 阅读全文
posted @ 2022-03-18 20:45 小鲨鱼2018 阅读(1589) 评论(0) 推荐(0)
摘要: 1、测试1 当前目录下文件 > getwd() [1] "C:/Users/75377/Desktop/r_test2" > dir() ## 查看当前目录下文件 [1] "a.txt" > file.exists("a.txt") ## 判断当前目录下是否存在a.txt [1] TRUE > fi 阅读全文
posted @ 2022-03-18 18:07 小鲨鱼2018 阅读(4317) 评论(0) 推荐(0)
摘要: 1、quantile生成分位数 > data1 <- c(0, 10) > quantile(data1, c(0.2, 0.5)) ## 取0-10 20%和50%点的数值 20% 50% 2 5 > data2 <- c(1, 23) > quantile(data2, c(0.2, 0.5)) 阅读全文
posted @ 2022-03-09 23:42 小鲨鱼2018 阅读(1485) 评论(0) 推荐(0)
上一页 1 ··· 258 259 260 261 262 263 264 265 266 ··· 408 下一页