回复:表更新:如何只更新選定的列?如果您有 JMP16,您可以手動執行一次操作,然後從增強日誌中獲取腳本,很可能您正在尋找的是 Replace Columns in Main Table()
Data Table("Big Class") << Update(
With(Data Table("Subset of Big Class")),
Match Columns(:name = :name),
Replace Columns in Main Table(:age)
);

回复:表更新:如何只更新選定的列?嗨,這可能會做你正在尋找的
Names Default To Here( 1 );
// opens Table
dt1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
//generate update Table
dt2 = dt1 << Clear Select << Select Rows( Index( 1, 8 ) ) << Subset( Selected Rows( 1 ), Selected columns only( 0 ) );
// delete contend
for(k=4,k<=ncols(dt1),k++,column(dt1,k)[(1 :: 8)]=.);
//select columns
dt1 << Clear select;
wait(0.1);
dt1 << Select Rows ( (3::5) );
wait(0.1);
// ### scrpit only with selected rows
// get selected rows
s_rows = dt1 << Get Selected Rows();
// create a new column with selected rows as 1
n_c1 = dt1 << new column();
n_c1[s_rows]=1;
// create a new column on the update table
n_c2 = dt2 << New Column("temp",Numeric,"Continuous",<<SET initial="" data="https://community.jmp.com/"></SET>dt2 << Delete Columns(n_c2);<BR />
表更新:如何只更新選定的列?這應該是一個快速的:
表更新:如何只更新選定的列?
Data Table( dt1 ) << Update(
With( Data Table( dt10 ) ),
Match Columns( :SAMPLE = :SamID ),
Add Columns from Update Table( None ),<BR /> ### Update Selected Columns (:Type, :Method) ###<BR />)
手動完成很簡單,但是在腳本中呢? 腳本指南中沒有任何內容(只有如何避免添加列)。 我的各種猜測和試驗(例如,請參閱上面腳本中的### 內部)不起作用。
高級統計建模自動化和腳本數據混合和清理大規模定制