摘要: 1、 dir() dat <- read.table('test.txt',fill = T) ## fill = T,读取列数不一致的行,用“”填充 dat result <- data.frame() ## 创建空数据框 result for (i in 1:nrow(dat)) { if (( 阅读全文
posted @ 2021-12-16 23:08 小鲨鱼2018 阅读(1439) 评论(0) 推荐(0) 编辑
摘要: 1、删除test.txt末尾的单个或者多个空格或者制表符 root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt ## 测试数据 2 3 4 a 3 d d w e z v e z c g z v b root@PC1:/ 阅读全文
posted @ 2021-12-16 22:40 小鲨鱼2018 阅读(1396) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据,依据列数筛选数据 root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt ## 测试数据 2 3 4 3 d a 3 d d w e f z v e z c g k e q z v b d root@PC1: 阅读全文
posted @ 2021-12-16 22:34 小鲨鱼2018 阅读(855) 评论(0) 推荐(0) 编辑
摘要: 1、问题 ubuntu中解压rar文件, 如下: root@PC1:/home/test2# ls test.rar root@PC1:/home/test2# unrar e test.rar -bash: /usr/bin/unrar: No such file or directory 2、解 阅读全文
posted @ 2021-12-16 21:52 小鲨鱼2018 阅读(2469) 评论(0) 推荐(0) 编辑