有谁知道如何转换一列(仅一列)并使行成为使用JSL的表标题?
我正在使用JMP12。
基本上,我希望第一行是列标题,而不是下面的输出。 我的数据集已附加。

谢谢,
西蒙
dt = Data Table( "sports" ) << Transpose(
columns( :Items ),
Output Table( "transposed" )
);
嗨,我不再加载JMP 12了,但是我认为我在这里使用的所有内容都在JMP 12中了。
干杯,
布雷迪
ps-自JMP 12起,我们添加了很多很棒的东西!
Names Default To Here(1);
//replicate your original table
dt = New Table( "sports",
New Column( "Items", Character, "Nominal",
Set Values( {"soccer", "volleyball", "7tennis", "basketball"} ),
)
);
//get a list of desired column names.
colNameList = dt:items << get values;
/*
If you're creating a new table: build a 1 row, n column matrix of missing data
with the J() function and the As Table() function, which lets you set column names
easily.
*/
newDt = as table (J (1, nitems(colNameList), .), <<COLUMN names=""></COLUMN>