摘要: 1、创建测试数据 > dat <- as.data.frame(matrix(1:100,nrow =10)) > dat V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 1 1 11 21 31 41 51 61 71 81 91 2 2 12 22 32 42 52 62 72 8 阅读全文
posted @ 2020-10-02 15:19 小鲨鱼2018 阅读(12266) 评论(0) 推荐(2) 编辑
摘要: 1、创建测试数据 [root@linuxprobe test]# seq 20 > a.txt [root@linuxprobe test]# ls a.txt [root@linuxprobe test]# head a.txt 1 2 3 4 5 6 7 8 9 10 2、提取奇数行 [root 阅读全文
posted @ 2020-10-02 09:50 小鲨鱼2018 阅读(2963) 评论(0) 推荐(0) 编辑