`row.names< - .data.frame`(`* tmp *`,value = value)出错:'row.names'长度无效

时间:2017-01-09 03:12:10

标签: r error-correction

我收到以下错误:     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

有人可以帮忙吗?

0 个答案:

没有答案