BookmarkSubscribe
Choose Language Hide Translation Bar
robot
Community Trekker

Using Column Lists

I would like to grab a list of column names, and then use that list to subset a data table.  An example script is below; I get an error because it seems that JMP does not recognize the list as column names.  What is the correct syntax to use here?  I am using JMP11.  Thanks!

// Example.

Names Default To Here( 1 );

bigClass = Open( "$SAMPLE_DATA/Big Class.jmp" );

names = bigClass << Get Column Names( Numeric );

sub = bigClass << Subset( Columns( names ) );

0 Kudos
1 REPLY 1
robot
Community Trekker

Re: Using Column Lists

Never mind.  Got it.

// Example.

Names Default To Here( 1 );

bigClass = Open( "$SAMPLE_DATA/Big Class.jmp" );

names = bigClass << Get Column Names( Numeric );

sub = bigClass << Subset( Columns( Eval( names ) ) );

0 Kudos