Hi.
I have a data table with numeric columns and I intend to create new columns with the result of dividing column 1 by column 2, column 3 divided by column 4 and so on.
I have this script but my problem is that I don't know how to indicate column 2 in the dividend.
numericColNames = dt << get column names( string, numeric );
For( i = 1, i <= N Items( numericColNames ) - 1, i += 2,
Eval(
Substitute(
Expr(
New Column( Char( numericColNames[i] ) || "_Stand",
Numeric,
Continuous,
Formula( (__col__) / (__col__) )
)
),
Expr( __col__ ), Parse( ":" || numericColNames[i] )
)
)
);