Skip to content

Error in match.names(clabs, names(xi))

2 messages · Quan Zhou, David Winsemius

#
On Apr 5, 2011, at 8:28 PM, Quan Zhou wrote:

            
You haven't told us what you expect (or even what you are trying to  
do),  but if you add an assignment of colnames before the final  
rbind()-ing of a data.frame and a matrix you get some sort of result:

.....
+    tmpmat[,2] <- srvGastA$time[1:timind] ; colnames(tmpmat) <-  
names(newGas)
+    newGas <- rbind(newGas,tmpmat) }
 > str(newGas)
'data.frame':	3988 obs. of  5 variables:
  $ start : num  0 0 1 17 42 44 48 60 0 1 ...
  $ stop  : num  1 1 17 42 44 48 60 63 1 17 ...
  $ Dth   : num  1 0 0 0 0 0 0 1 0 0 ...
  $ Ploidy: num  1 1 1 1 1 1 1 1 1 1 ...
  $ tim   : num  0 0 0 0 0 0 0 0 0 0 ...
Good luck with trying to make a data.frame without column names.