Skip to content
Prev 901 / 7420 Next

a question of Data quotation

Zongshan,

When you use cbind, R will combine them as a matrix and unfortunately 
the $ way of indexing columns does not work for matrices. A better way 
to get what you want would be like this:

data<-data.frame(jan=npp$JAN,feb=npp$FEB)
      

Hope this helps,
Chris
Zongshan, Li wrote: