Hello Bastian,
This error means that the builtin data set was not loaded into the Data
variable.

Have you loaded the fPortfolio library?

Try running the following code:

library(fPortfolio)
Data <- as.timeSeries(data(LPP2005REC))[,1:6]
Spec <- portfolioSpec()
portfolioFrontier(data = Data , spec = Spec, constraints = "Const")

Bests,

Hebbertt

On Mon, Nov 3, 2008 at 10:51 PM, Bastian Offermann <
bastian2507hk@yahoo.co.uk> wrote:

> hello,
>
> have there been any changes recently to fPortfolio? i have taken the code
> from the following presentation
>
> http://www.rmetrics.org/Meielisalp2008/Presentations/Wuertz2.pdf
>    slide 10/31
>
> Data <- as.timeSeries(data(LPP2005REC))[,1:6]
> Spec <- portfolioSpec()
> portfolioFrontier(data = Data , spec = Spec, constraints = Const)
>
> it returns error message
>
> Error in as.matrix(x@Data) :
>  no slot of name "Data" for this object of class "timeSeries"
>
> can anybody help me out? are there any good tutorials on fPortfolio.
> documentation seems to be a little rather technical. thanks.
>
> regards
>
> _______________________________________________
> R-SIG-Finance@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.
>

	[[alternative HTML version deleted]]

