摘要: # 读取txt文件 data <- read.table("your_input_file.txt", header = TRUE, stringsAsFactors = FALSE) # 统计每个节点在V1和V2中的出现次数 V1_counts <- table(data$V1) V2_count 阅读全文
posted @ 2023-10-23 16:43 王哲MGG_AI 阅读(29) 评论(0) 推荐(0)
摘要: setwd("C:\\Users\\Administrator\\Desktop") # 读取txt文件 microbial_names <- readLines("your_input_file.txt") # 使用正则表达式提取属水平的名称 genus_names <- sapply(micro 阅读全文
posted @ 2023-10-23 15:21 王哲MGG_AI 阅读(50) 评论(0) 推荐(0)