JSL for converting a formula to its resultsHello,
I have the following jsl code
dt<< New Column ("I (%)", (:Mean*100));
that takes a column (Mean), multiplies by 100 and create a new column called I(%) with the formula.
I do not want the formula but just the result of the calculation in the new column. How can I do this?
Many thanks.
ScriptingRe: JSL for converting a formula to its resultsNamesDefaultToHere(1);
// Sample table
dt = Open("$SAMPLE_DATA/Big Class.jmp");
// Add a formula column
dt << NewColumn("BMI", Numeric, Continuous, Formula(:weight/(:height^2)));
// Make sure the formula is run
dt << runFormulas;
// Wait a little, then remove the formula
Wait(3);
Column(dt, "BMI") << deleteFormula;