[R] Joining lists
(Ted Harding)
Ted.Harding at manchester.ac.uk
Tue Jan 13 23:39:56 CET 2009
On 13-Jan-09 22:18:00, glenn wrote:
> Very simple one sorry:
>
> How do I join 2 lists please
>
> Thanks
> glenn
c(list1,list2)
Example:
A<-list(a=1,b=2,c=3)
B<-list(d=4,e=5,f=6)
c(A,B)
# $a
# [1] 1
# $b
# [1] 2
# $c
# [1] 3
# $d
# [1] 4
# $e
# [1] 5
# $f
# [1] 6
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 13-Jan-09 Time: 22:39:53
------------------------------ XFMail ------------------------------
More information about the R-help
mailing list