Closed GoogleCodeExporter closed 9 years ago
Livio
it is due to your new functions in strategico_util.R and ltp.R:
Number.ToPeriod <- function(period){ return(c(period%/%2,period%%2+1)) }
Period.ToNumber <- function(period){
if(is.numeric(period))
return(sum((period-c(0,1))*c(2,1)))
else
return(sapply(period,function(per) sum((Period.FromString(per)-c(0,1))*c(2,1))))
}
Please
-) add the parameter "period.freq" to the new functions
-) rename Number.ToPeriod to Period.FromNumber
Original comment by matteo.redaelli
on 25 Sep 2011 at 10:49
solved with r568
Original comment by matteo.redaelli
on 25 Sep 2011 at 4:48
Original issue reported on code.google.com by
matteo.redaelli
on 19 Sep 2011 at 6:53