[R] applying a function to a pair of components for each row of a list

2009-06-27 Thread Kavitha Venkatesan
Hi, I have a set of (x,y) coordinate pairs that are stored as a list my_list $x [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 $y [1] -8.0866819 -7.3876052 -6.6849311 -5.9837693 -5.2967432 -4.6525466 [7] -4.0999453 -3.6556190 -3.3076102 -3.0360780 -2.8220465

Re: [R] applying a function to a pair of components for each row of a list

2009-06-27 Thread milton ruser
Hi Kavitha, I must confess you that I not understood well what you are looking for. But.. mylist-list(x=1:25, y=runif(n=25)) plot(mylist, type=n) points(mylist, type=p, col=mylist$x) Hth, miltinho On Sun, Jun 28, 2009 at 1:03 AM, Kavitha Venkatesan kavitha.venkate...@gmail.com wrote: Hi,

Re: [R] applying a function to a pair of components for each row of a list

2009-06-27 Thread Kavitha Venkatesan
Milton, Thanks, the answer was in fact as simple as you pointed out. I was thinking more complicated than needed! Kavitha On Sun, Jun 28, 2009 at 1:11 AM, milton ruser milton.ru...@gmail.comwrote: Hi Kavitha, I must confess you that I not understood well what you are looking for. But..