Update Column Name from Configuration File Using JSLHi JMP users,
I would like to update column names from a configuration file using JSL and make plots which will have the updated column names in their titles and axes. I am looking for ideas on how I can do this.
I am attaching my code so far and tables. Thanks for the help.
I have attached what I would like the final graph to look like (desired_Bivariate)
-Simon
Names Default To Here( 1 );
dt = Open( "table_1.jmp" );
dt1 = Open( "config_table.jmp" );
dt1 << New Column( "New Column", character, formula( Column_name || "_" || additional_name ) );
graph = dt << Bivariate( Y( :height ), X( :id ) );
ScriptingRe: Update Column Name from Configuration File Using JSLTry this:
Names Default To Here( 1 );
dt = Open( "table_1.jmp" );
dt1 = Open( "config_table.jmp" );
for(i = 1, i <= N Rows(dt1), i++,
x = Column(dt1, "Column_name")[i];
y = Column(dt1, "additional_name")[i];
Column(dt, i) << Set Name( x || "_" || y);
);
Re: Update Column Name from Configuration File Using JSLGreat. Thanks ThuongLe.