Hi, I need to create a new column by apply formula on two existing column. I want to reference column through a variable rather than direct referencing. Here is the code , but formula seems doesn't recognize Column(ColVar). Anyone could help me to fix it? Thanks in advance.
yCol = Column("weight");
xCol = Column("height");
Bivariate( Y( yCol ), X( xCol) );
colVar ="$weight";
dt = currentdatatable();
dt<<new column("sum", formula(column(ColVar)+:height));