[R] using function from specific packages

2008-06-03 Thread jiho.han
hello, useRs- i have a function that i wrote myself, for example, lag(x). however, when i load 'zoo' packages and try to lag 'zoo' object, it gave me error. (R try to pass 'zoo' object into my function.) i typed 'lag.zoo' in R, but it can't find it. how can i access 'lag.zoo' function? and in

Re: [R] using function from specific packages

2008-06-03 Thread Gabor Grothendieck
zoo has a namespace and lag.zoo is not exported so zoo:::lag.zoo is how to access it directly. See help(:::) On Tue, Jun 3, 2008 at 4:31 PM, jiho.han [EMAIL PROTECTED] wrote: hello, useRs- i have a function that i wrote myself, for example, lag(x). however, when i load 'zoo' packages and