我有下面的cbind代码行,但每次都会收到警告消息。虽然代码仍然可以正常工作,但是有没有办法解决这个警告呢?
dateset = subset(all_data[,c("VAR1","VAR2","VAR3","VAR4","VAR5","RATE1","RATE2","RATE3")])
dateset = cbind(dateset[c(1,2,3,4,5)],stack(dateset[,-c(1,2,3,4,5)]))
警告:
Warning message:
In data.frame(..., check.names = FALSE) :
row names were found from a short variable and have been discarded
提前感谢!
https://stackoverflow.com/questions/23534066
复制相似问题