[Rd] fPortfolio prob: maxreturnPortfolio() returns Na/NaN/Inf error

2010-01-21 Thread Michael Ashton
Hi - First posting here. I am using fPortfolio to try and optimize a simple portfolio consisting of 5 daily return series. I want to maximize return subject to setTargetRisk(myspec)=0.08 using only constraints="LongOnly" I can run feasiblePortfolio() using a spec file that specifies the weights

[Rd] Update on MinGW-w64 builds for 64-bit Windows

2010-01-21 Thread Prof Brian Ripley
An update to the announcement at https://stat.ethz.ch/pipermail/r-devel/2010-January/056301.html We now have daily builds of snapshots of R-devel for 64-bit Windows available at http://cran.r-project.org/bin/windows64/contrib/ . Tcl/Tk support is now provided. There is a repository of binary p

[Rd] Inconsistency in as.data.frame.table for stringsAsFactors

2010-01-21 Thread Stavros Macrakis
I noticed that in as.data.frame.table, the stringsAsFactors argument defaults to TRUE, whereas in the other as.data.frame methods, it defaults to default.stringsAsFactors(). The documentation and implementation agree on this, so this is not a bug. However, I was wondering if this disparity was in

Re: [Rd] Model frame when LHS is cbind (PR#14189)

2010-01-21 Thread Arni Magnusson
Thank you Prof. Ripley, for examining this issue. I have two more questions on this topic, if I may. (1) Truncated column names With your explanations I can see that the problem of missing column names originates in cbind() and the 'deparse.level' bug we have just discovered. I had tried diff

[Rd] Rgeneric.py assists in rearranging generic function definitions

2010-01-21 Thread Ross Boylan
I've attached a script I wrote that pulls all the setGeneric definitions out of a set of R files and puts them in a separate file, default allGenerics.R. I thought it might help others who find themselves in a similar situation. The "situation" was that I had to change the order in which files in

Re: [Rd] Model frame when LHS is cbind (PR#14189)

2010-01-21 Thread Prof Brian Ripley
A few points. 0) This seems a Wishlist item, but it does not say so (see the section on BUGS in the FAQ). 1) A formula does not need to have an lhs, and it is an assumption that the response is the first element of 'variables' (an assumption not made a couple of lines later when 'resp' is us

Re: [Rd] function curve() (PR#14191)

2010-01-21 Thread Tony Plate
You may have figured this out already, but you can get a "call" object from parse() by extracting its first element, as in mycurveC <- function(x,from=1,to=10){ xloc <- parse(text=x)[[1]] do.call("curve",list(expr=xloc,from=from,to=to)) } mycurveC("(x-4) ** 2") This doesn't address the co