Skip to content
Prev 154845 / 398502 Next

basic dataframe question

The problem is your misuse of cbind.  You want

CuIEP <- data.frame(Cu = CuZn$Cu, CuCen = CuZn$CuCen, StartCu, EndCu)

cbind() created a matrix, as there were numeric inputs the matrix has to 
be numeric.  I've absolutely no idea where you got the idea to use cbind 
here, but it is helpdful to test each step to see where the conversion 
occurred, rather than assume your guess is correct.
On Tue, 2 Sep 2008, Matthew.Findley at ch2m.com wrote: