有誰知道如何轉換一列(僅一列)並使行成為使用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>