Concatenating lists



next up previous contents
Next: Some functions returning Up: Constructing and modifying Previous: Constructing and modifying

Concatenating lists

 

When the concatenation function c() is given list arguments, the result is an object of mode list also, whose components are those of the argument lists joined together in sequence.

list.ABC <- c(list.A, list.B, list.C)

Recall that with vector objects as arguments the concatenation function similarly joined together all arguments into a single vector structure. In this case all other attributes, such as dim attributes, are discarded.



Erik Moledor
Tue Jan 31 21:02:18 EST 1995