摘要: 1、提取 包含s的列 dir() dat <- read.table("a.txt") dat ## 测试数据 idx <- dat[1,] == "s" idx for (i in 2:nrow(dat)) { temp <- dat[i,] == "s" idx <- idx | temp ## 阅读全文
posted @ 2022-06-16 10:00 小鲨鱼2018 阅读(536) 评论(0) 推荐(0)
摘要: 001、测试数据 root@PC1:/home/test# ls a.txt root@PC1:/home/test# cat a.txt 1 2 3 4 5 6 7 8 9 e f s f g u d f x a d s g s c s e s z c b e g c s d f 002、提取包含 阅读全文
posted @ 2022-06-16 09:45 小鲨鱼2018 阅读(1270) 评论(0) 推荐(0)