分组求均值
exprSet_symbol1 <- aggregate(x = exprSet[,3:ncol(exprSet)],
by = list(exprSet$GENE),
FUN = mean)
data%>%
group_by(group)%>%
summarise(A=mean(A),B=mean(B))
分割字符串
colsplit
exprSet_symbol1 <- aggregate(x = exprSet[,3:ncol(exprSet)],
by = list(exprSet$GENE),
FUN = mean)
data%>%
group_by(group)%>%
summarise(A=mean(A),B=mean(B))
colsplit
本文标题:R语言简单小技巧
本文链接:https://www.haomeiwen.com/subject/xtiwhdtx.html
网友评论