「名前、モデリングタイプ、データタイプによる並べ替え」以外にJSLの列を並べ替えるオプションはありますか?
名前と数値インデックスを使用していくつかの列を並べ替えたいと考えています。 列には、「列データ 1 (1)、列データ 1 (2)、....、列データ 99 (1)、列データ 99 (2)、...」という形式で名前が付けられます。
名前による並べ替えオプションを使用すると、基本的にデータ (1)、(100)、(101)、(102)、.. が数値順ではなくテキスト順で並べ替えられます。
このデータの並べ替えを簡単にする JSL が導入するオプションはありますか? 整理する列が 2200 まであります。
JMP 14.1.0 の使用
names default to here(1);
// Create a new data table with columns that resemble your columns
dt = New Table( "Example" );
// Create a bunch of new columns
For(i=1,i<=100,i++,
dt << new column( "Column Data " || char(randominteger(1,10)) || "(" ||
char(randominteger(1,99)) || ")"
)
);
// Get rid of columns that are duplicates
For(i=100,i>=1,i--,
if(substr(column(dt,i)<<GET name=""></GET>
上記は、最初にサンプル データ テーブルを作成し、次に列を数値順に並べ替えるスクリプトです。