除了“按名称、建模类型、数据类型重新排序”之外,是否有任何选项可以对 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>
上面是一个脚本,它首先构建一个示例数据表,然后按数字对列进行重新排序