Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
masum111bd
Level II

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));

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
ih
ih
Level VII

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));

View solution in original post

1 REPLY 1
Highlighted
ih
ih
Level VII

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));

View solution in original post

Article Labels

    There are no labels assigned to this post.