matteoredaelli / strategico

Automatically exported from code.google.com/p/strategico
GNU General Public License v3.0
1 stars 1 forks source link

ltp.R: replacing all occurrences of sapply(.. .incSample) with the function BuildPeriodRange #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
replace all occurrences of

sapply(1:dim(pred)[1],function(x) paste(.incSampleTime(period.freq = 
period.freq, now = end_serie,increment =x),collapse="-"))

with

  BuildPeriodRange

PS: if possible, do not duplicate lines of code! create a function and call it. 
The code is cleaner, more readable and usually with less bugs

Original issue reported on code.google.com by matteo.redaelli on 20 Apr 2011 at 8:44

GoogleCodeExporter commented 9 years ago
Now It should be fixed

Original comment by matteo.redaelli on 20 May 2011 at 5:37