Re: [R] rownames in an apply function

2011-04-19 Thread Santosh Srinivas
Thanks. On Tue, Apr 19, 2011 at 5:16 PM, Gabor Grothendieck wrote: > On Tue, Apr 19, 2011 at 6:59 AM, santosh wrote: >> Dear Group, >> >> I am doing an apply function on a zoo object. I need the rownames to >> be passed to the function. >> Any suggestions on how to accomplish this? >> >> Here is

Re: [R] rownames in an apply function

2011-04-19 Thread Gabor Grothendieck
On Tue, Apr 19, 2011 at 6:59 AM, santosh wrote: > Dear Group, > > I am doing an apply function on a zoo object. I need the rownames to > be passed to the function. > Any suggestions on how to accomplish this? > > Here is the code I am using > > tmp <- > structure(c(611.55, 611.55, 611.55, 611.55,

Re: [R] rownames in an apply function

2011-04-19 Thread santosh
Thanks David. Is there a way of explicitly passing the rowname since I need it in the function. On Apr 19, 4:19 pm, David Winsemius wrote: > On Apr 19, 2011, at 6:59 AM, santosh wrote: > > > > > > > > > > > > > Dear Group, > > > I am doing an apply function on a zoo object. I need the rownames to

Re: [R] rownames in an apply function

2011-04-19 Thread David Winsemius
On Apr 19, 2011, at 6:59 AM, santosh wrote: Dear Group, I am doing an apply function on a zoo object. I need the rownames to be passed to the function. Any suggestions on how to accomplish this? Here is the code I am using tmp <- structure(c(611.55, 611.55, 611.55, 611.55, 611.55, 520, 520,

[R] rownames in an apply function

2011-04-19 Thread santosh
Dear Group, I am doing an apply function on a zoo object. I need the rownames to be passed to the function. Any suggestions on how to accomplish this? Here is the code I am using tmp <- structure(c(611.55, 611.55, 611.55, 611.55, 611.55, 520, 520, 520, 520, 520, 425, 425, 425, 432.2, 432.2, 337,