Re: [R] Access column after hp filter

2014-03-15 Thread Pascal Oettli
Sorry, typo. It should be names(e.hp) Pascal On Sun, Mar 16, 2014 at 3:42 PM, Pascal Oettli wrote: > Dear Sabina, > > If you carefully read the help page (always a good idea), examples > show you that it is "object$cycle", not "object$Cycle". Also, you can > use names, i.e. names(e.hp$). > > HTH

Re: [R] Access column after hp filter

2014-03-15 Thread Pascal Oettli
Dear Sabina, If you carefully read the help page (always a good idea), examples show you that it is "object$cycle", not "object$Cycle". Also, you can use names, i.e. names(e.hp$). HTH, Pascal On Sun, Mar 16, 2014 at 12:56 AM, Liana-Sabina Luncasu wrote: > Dear all, > > I am working with some ti

[R] Access column after hp filter

2014-03-15 Thread Liana-Sabina Luncasu
Dear all, I am working with some time series data and I applied an HP filter to it using the following code: e.hp = hpfilter(empl) Now I am trying to access the last column (Cycle), that is, to save it in a separate vector. I tried with both e.hp$Cycle and e.hp[ , 3] but none of them works. I ge