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] "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] "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<-"'
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