回复:表更新:如何只更新选定的列?如果您有 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 />)
手动完成很简单,但是在脚本中呢? 脚本指南中没有任何内容(只有如何避免添加列)。 我的各种猜测和试验(例如,请参阅上面脚本中的### 内部)不起作用。
高级统计建模自动化和脚本数据混合和清理大规模定制