eikeluedeling / decisionSupport

6 stars 3 forks source link

Deliverable specification 4.1 Improve the alternatives of the model function syntax #2

Closed l-goehring closed 9 years ago

l-goehring commented 9 years ago

The alternative for the model function syntax shall be improved as follows: In method mcSimulation() the alternatives for the argument functionSyntax shall be implemented as follows:

    profit<-function(x){
      # Assign the variable names to the function environement:
      for(i in names(x)) assign(i, as.numeric(x[i]))
      revenue - costs
    }
    profit<-function() revenue – costs
l-goehring commented 9 years ago

Dear @eikeluedeling,

this comment is for completeness and to practice collaboration on GitHub: I think, this issue is resolved with the initial release on CRAN, i.e. Version 1.101.1, available at http://cran.r-project.org/web/packages/decisionSupport/.

Please close this issue if you agree.

Cheers, Lutz

eikeluedeling commented 9 years ago

Yes, this appears to be working well.