JSL:如何将公式从一个数据表复制到另一个数据表?<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />我需要将公式从一个数据表复制到另一个数据表。
我发现并设法开始工作的唯一建议是:
使用公式复制列
The easiest way is to get the script for the original data table.
data table("Original") << get script;
Now the script appears in the log. Just copy and paste into a new script, keeping only the bits related to adding the the formula columns.
然而,当我需要多次应用它时,这似乎非常复杂且耗时。
这里建议了另一种方法:将预测公式保存到现有列?
f = column("prednew") << Get Formula;
column("predold") << Set Formula( Name Expr( f ));
所以我尝试了:
f = data table("table 1") << column("my formula") << Get Formula;
data table("table 2") << column("my formula") << Set Formula( Name Expr( f ));
表 2 中“我的公式”已存在,但为空
但它不起作用,并且日志没有给出任何错误。
有任何想法吗? JMP 官方文档中是否对此进行了记录?
回复:JSL:如何将公式从一个数据表复制到另一个数据表?几年后参加聚会:)
您可能还需要考虑 Formula Depot,这是 JMP Pro 13 中添加的一项功能,旨在帮助这种情况。
与其他型号、异形等。
一探究竟:
http://www.jmp.com/support/help/13/Formula_Depot.shtml
回复:JSL:如何将公式从一个数据表复制到另一个数据表?我无法让您其他帖子中的方法起作用,但这非常有效 - 谢谢。
回复:JSL:如何将公式从一个数据表复制到另一个数据表?另一种选择是使用 Get Column Properties(),然后使用 Add Column Properties() 来复制所有属性,包括。公式。 使用此方法时不需要 Name Expr()。
旧科尔=柱子(数据表( “表格1” ) , “我的公式” ) ;
纽科尔=柱子(数据表( “表2” ) , “我的公式” ) ;
纽科尔<<添加列属性(旧科尔<<获取列属性() ) ;
回复:JSL:如何将公式从一个数据表复制到另一个数据表?Get Formula() 和 Set Formula() 已记录,而您的语法可能没有记录。 Column() 不能用作数据表的消息。 请改用 Column() 的第一个参数来指定数据表。
F =柱子(数据表( “表格1” ) , “我的公式” ) <<获取公式;
柱子(数据表( “表2” ) , “我的公式” ) <<设定公式(名称表达式( F ) ) ;