[R-SIG-Finance] PerformanceAnalytics - Error in UseMethod("time<-")

Heiko Mayer Heiko-Mayer at gmx.de
Sun Jul 12 14:07:51 CEST 2009


Gabor,

Thank you very much. That quick fix works excellent. I will cc Rmetrics, maybe they can have a look at it.

Regards,
Heiko

-------- Original-Nachricht --------
> Datum: Sun, 12 Jul 2009 07:23:39 -0400
> Von: Gabor Grothendieck <ggrothendieck at gmail.com>
> An: Heiko Mayer <Heiko-Mayer at gmx.de>
> CC: r-sig-finance at stat.math.ethz.ch
> Betreff: Re: [R-SIG-Finance] PerformanceAnalytics - Error in 	UseMethod("time<-")

> This seems to cause the problem:
> 
> library(PerformanceAnalytics)
> library(fPortfolio)
> example(charts.PerformanceSummary)
> 
> whereas this works (same statements different order):
> 
> library(fPortfolio)
> library(PerformanceAnalytics)
> example(charts.PerformanceSummary)
> 
> It appears that fPortfolio or one of the associated rmetrics packages
> is masking time<-.zoo.  I suspect an S4 problem either with S4 itself
> or with the implementation in rmetrics.
> 
> At any rate the workaround seems to be to load PerformanceAnalytics
> after fPortfolio rather than before.
> 
> > packageDescription("PerformanceAnalytics")$Version
> [1] "0.9.7.1"
> > R.version.string
> [1] "R version 2.9.1 Patched (2009-07-01 r48886)"
> > packageDescription("fPortfolio")$Version
> [1] "2100.77"
> 
> 
> On Sat, Jul 11, 2009 at 12:39 PM, Gabor
> Grothendieck<ggrothendieck at gmail.com> wrote:
> > Always state what commands you are using so that others
> > can reproduce the problem.    I suspect there is something
> > wrong with your setup as this works for me:
> >
> > library(PerformanceAnalytics)
> > example(charts.PerformanceSummary)
> >
> >> packageDescription("PerformanceAnalytics")$Version
> > [1] "0.9.7.1"
> >> R.version.string
> > [1] "R version 2.9.1 Patched (2009-07-01 r48886)"
> >
> > From your error message it seems that the zoo package
> > may not be present.  Make sure its installed and loaded.
> >
> > search()
> >
> > should list zoo.
> >
> > On Sat, Jul 11, 2009 at 10:28 AM, Heiko Mayer<Heiko-Mayer at gmx.de> wrote:
> >> Hi,
> >>
> >> I have tried to create the PerformanceSummary chart in
> PerformanceAnalytics but always got an error. Even the example doesn't work showing the
> same error. I only get german error messages, but in english it should look
> like:
> >> 'Error in UseMethod("time<-") : no applicable method for "time<-"'
> >>
> >>> data(edhec)
> >>>
> charts.PerformanceSummary(edhec[,c("Funds.of.Funds","Long.Short.Equity")])
> >> Fehler in UseMethod("time<-") : keine anwendbare Methode für "time<-"
> >>
> >> Has anyone an idea?
> >>
> >> Thanks,
> >> Heiko
> >> --
> >>
> >> für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
> >>
> >> _______________________________________________
> >> R-SIG-Finance at stat.math.ethz.ch mailing list
> >> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> >> -- Subscriber-posting only.
> >> -- If you want to post, subscribe first.
> >>
> >

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!



More information about the R-SIG-Finance mailing list