From: Fernando Saldanha <fsaldan1_at_gmail.com>

Date: Fri 03 Feb 2006 - 02:56:27 EST

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Feb 03 03:03:58 2006

Date: Fri 03 Feb 2006 - 02:56:27 EST

I declared the environment of the function myfun to be NULL as follows:

Error in myfun(args) : couldn't find function "index"

> z<-ts(1:5)

*> z
*

Time Series:

Start = 1

End = 5

Frequency = 1

[1] 1 2 3 4 5

> index(z)

[1] 1 2 3 4 5

> zoo::index(z)

Error in loadNamespace(name) : package 'zoo' does not have a name space

How can I qualify index() so that it is visible inside the body of myfun?

Thanks for any suggestions,

FS

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Feb 03 03:03:58 2006

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:42:16 EST
*