[R] remove descriptions from output

Rolf Turner rolf.turner at xtra.co.nz
Thu Jun 28 22:04:18 CEST 2012


On 28/06/12 22:24, Kathie wrote:
> Dear R users,
>
> I'd like to remove some descriptions when I use "filter".
>
>> filter(1:10, rep(1, 3))
> Time Series:
> Start = 1
> End = 10
> Frequency = 1
>   [1] NA  6  9 12 15 18 21 24 27 NA
>
>
> That is, I want only this
>
>   [1] NA  6  9 12 15 18 21 24 27 NA
>
> Thank you in advance.

Use as.vector() on the output of filter.

     cheers,

         Rolf Turner



More information about the R-help mailing list