[R-SIG-Finance] Zoo functions

MAB MichelBeck at sbcglobal.Net
Mon Feb 4 18:35:51 CET 2008


Dirk Eddelbuettel <edd <at> debian.org> writes:

> 
> 
> On 1 February 2008 at 20:29, MAB wrote:
> | 1) The documentation for the zoo package indicates a function lag.zoo .
> | I can't find it when I try to use it or do a help(lag.zoo). I can find all 
the 
> | other zoo functions I tried so far (allthough diff.zoo is missing also).
> | 
> | Any hints?

Hi Dirk!

So do I understand correctly that I should not attempt to use a function 
lag.zoo but should use the function lag after loading the zoo library?

This is what I did:

1) I reinstalled zoo
2) I loaded zoo
3) I typed in the commands


library(zoo)
test <- zoo(1:10)
lag.zoo(test)

and got

Error: could not find function "lag.zoo"

SO I should type in lag only to get the proper result?


Thanks,

Michel

PS Indeed I have always been getting the help pages for lag.zoo and diff.zoo



More information about the R-SIG-Finance mailing list