Jump to content

Proper way to type an equation in Spotfire


Anthony Quarm 5

Recommended Posts

I have replicated an excel sheet in spotfire. One of the if statements has a false that is essentially:

D16*EXP(-$B$12)

With D16being a cell reference that cascades per iteration (D17, D18, etc) and B12 being a stagnant value.

Currently I am calculating this inside of a data function using r script. This part of the if statement is represnted by:

RateFunctionCalc

Link to comment
Share on other sites

I see. If it's all the same value than it makes sense to store this value in a variable using an aggregation like mean, min or max:

 

my.variable <- max(EurSheet$Dm.month)

 

This will keep your code cleaner. But it will not solve your problem.

 

Did you verify with a calculator that R datafunction is giving you the wrong result

 

Can you post a snapshot

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...