[Returnanalytics-commits] r2394 - pkg/PortfolioAnalytics/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Jun 22 02:02:53 CEST 2013


Author: rossbennett34
Date: 2013-06-22 02:02:53 +0200 (Sat, 22 Jun 2013)
New Revision: 2394

Modified:
   pkg/PortfolioAnalytics/R/objective.R
Log:
adding turnover as type for add.objective_v2

Modified: pkg/PortfolioAnalytics/R/objective.R
===================================================================
--- pkg/PortfolioAnalytics/R/objective.R	2013-06-21 11:50:42 UTC (rev 2393)
+++ pkg/PortfolioAnalytics/R/objective.R	2013-06-22 00:02:53 UTC (rev 2394)
@@ -181,6 +181,12 @@
                                                   )
             },
          
+         turnover = {tmp_objective = turnover_objective(name=name,
+                                                        enabled=enabled,
+                                                        arguments=arguments,
+                                                        ...=...)
+         },
+         
          null = 
            {return(portfolio)} # got nothing, default to simply returning
          ) # end objective type switch



More information about the Returnanalytics-commits mailing list