Skip to content
Prev 3933 / 29559 Next

rbind and spRbind

On Sun, 27 Jul 2008, Agustin Lobo wrote:

            
rbind tries to be "like" rbind. Note that there is no default rbind 
generic method in base R - it is just a function. The original function is 
mean to join vectors and matrices by stacking them by row. It has no 
concept of anything other than the data. There are issues with stacking 
ordered objects by row, be they time series or whatever - so it isn't 
clear how this ought to be done. The rbind and spRbind methods for 
Spatial* objects try to help, but because user needs differ, no choices 
will meet all needs. As I said, the addition of the coordinates comes from 
the behaviour of the coercion method for SpatialPointsDataFrame to 
data.frame.

There are no single good solutions here, perhaps other than dropping any 
similarity to the base rbind, IMHO.

Roger