Hi. I have written a script to create new numerical columns from the formula to standardize but I get an error when evaluating the formula. What do I do wrong?
Thank you.
The script:
Names Default To Here( 1 );
dt = Current Data Table();
numericColNames = dt << get column names( string, numeric );
For( i = 1, i <= N Items( numericColNames ), i++,
New Column( Char( numericColNames[i] ) || "_Stand",
Numeric,
Continuous,
Formula( Col Standardize( :numericColNames[i] ) ) )
);
The error:
Name Unresolved: numericColNames 1 times At rows: {1} Operation: numericColNames, :numericColNames