我收到以下错误:
row.names<-.data.frame
(*tmp*
,值=值)出错:
无效的'row.names'长度
这是我的剧本
library("RColorBrewer")
library("picante")
library("vegan")
library("ggplot2")
# read OTU data file for BB cultures
read.csv(file = "Heatmap_BB.csv", row.names = 1, header=TRUE, sep=",") -> BB
##creating the data tables for the heatmap.
BBnames <- BB[2:3] #here I assing the lables to be used later in one vector
hmBB <- BB[, 4:ncol(BB)]
hmBBmatrix <- (BB[,4:ncol(BB)])
hmBBmatrix
rownames(hmBBmatrix) <- BBnames
有人可以帮忙吗?