BookmarkSubscribeRSS Feed
Choose Language Hide Translation Bar
masum111bd
Community Trekker

Multiplying two columns with jsl script

I am trying to multiply two colums with jsl script. But no success.

dt<<new column("C", continious, Formula(:A * :B));

0 Kudos
1 ACCEPTED SOLUTION

Accepted Solutions
ih
ih
Community Trekker

Re: Multiplying two columns with jsl script

It looks like you have a spelling error.  You might want to specify both the data and modeling type though.  Here is an example:

 

Names default to here( 1 );

dt = open("$Sample_data/iris.jmp");

dt << New Column("Sepal length x width", Numeric, "Continuous", Formula(:Sepal length * :Sepal width));
1 REPLY 1
ih
ih
Community Trekker

Re: Multiplying two columns with jsl script

It looks like you have a spelling error.  You might want to specify both the data and modeling type though.  Here is an example:

 

Names default to here( 1 );

dt = open("$Sample_data/iris.jmp");

dt << New Column("Sepal length x width", Numeric, "Continuous", Formula(:Sepal length * :Sepal width));