把列表简化为矩阵图片3.按位置提取字符串str_sub(x,5,9)#取5~9位str_sub(x,c(5,9))#分别从第5位和第9位开始str_sub(x,c(5),c(5))#从第5位开始到第5位结束,用于取单独字符...,数据框按照某一列去重复distinct(test,Species,.keep_all = T)#.keep_all意思是把所有列都保存下来mutate,数据框新增一列mutate(test, new...s=s+i print(c(i,s))}x 如何将结果存下来..."),#我要把哪些列合并成一列 names_to = "gene",#原来的列名变成什么 values_to = "count")#原来的数值变成什么...library(ggplot2)p = ggplot(pdat,aes(gene,count))+ geom_boxplot(aes(fill = group))+ theme_bw()pp + facet_wrap