当我通过发送生成转换列时变换列到一个数据表,我得到对 Column 的引用作为返回值。
当我通过发送生成转换列时变换列对于 GraphBuilder 对象,我得到对 Graph Builder 的引用作为返回值 - 没有对列的引用:(
所以询问这个 col2 的名字是行不通的。
有趣的是,在与 GraphBuilder 对话时使用 col2 作为参数 - 有效。
在哪里可以找到有关引用转换列的更多信息?
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt << Graph Builder();
col1 = dt << Transform Column ("col1", Formula(1/:height));
col2 = gb << Transform Column ("col2", Formula(1/:height));
Show(Name Expr(col1));
Show(Name Expr(col2));
gb << Variables(X(:height), Y (col1));
gb << Variables(X(:height), Y (col2)); // gb seems to know col2
Show(col1 << get name());
Show(col2 << get name());
Show(Column(dt, "col1"));
Try(Show(Column(dt, "col2")), "dt doesn't know the column");