摘要: 1、 library(devtools) install_github('lchiffon/REmap') library(REmap) 阅读全文
posted @ 2022-05-06 23:06 小鲨鱼2018 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1、 root@liujiaxinpc1:/home/test# echo $a 100 root@liujiaxinpc1:/home/test# echo $b root@liujiaxinpc1:/home/test# [ $a ] ## 变量有赋值, 返回真 root@liujiaxinpc 阅读全文
posted @ 2022-05-06 16:44 小鲨鱼2018 阅读(516) 评论(0) 推荐(0) 编辑
摘要: -n: 当字符串不为0是为真; 字符串为0是为假。 n表示non-zero 示例: root@liujiaxinpc1:/home/test# a=100 root@liujiaxinpc1:/home/test# echo $a 100 root@liujiaxinpc1:/home/test# 阅读全文
posted @ 2022-05-06 16:31 小鲨鱼2018 阅读(8388) 评论(0) 推荐(0) 编辑
摘要: 1、问题 > x <- c(1, 3, 2, 1, 2, 3) > y <- c(5, 7, 6, 8, 9, 6) > order(x) ## 返回了排序的索引 [1] 1 4 3 5 2 6 > order(y) [1] 1 3 6 2 4 5 > order(x, y) ## 当向量x相同时, 阅读全文
posted @ 2022-05-06 12:44 小鲨鱼2018 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 原文:https://blog.csdn.net/coolfishbone_joey/article/details/119956378 echo 显示内容颜色,需要使用 -e 参数 -e :打开反斜杠转义 (默认不打开) ,可以转义 “\n, \t” 等 -n:在最后不自动换行 str="kimb 阅读全文
posted @ 2022-05-06 11:23 小鲨鱼2018 阅读(574) 评论(0) 推荐(0) 编辑
摘要: 1、举例1: root@PC1:/home/test# ls test.sh root@PC1:/home/test# cat test.sh #!/bin/bash read -p "please input a character: " KEY case $KEY in ## 利用变量KEY进行 阅读全文
posted @ 2022-05-06 10:42 小鲨鱼2018 阅读(179) 评论(0) 推荐(0) 编辑