Choose Language Hide Translation Bar
Highlighted
jimloughlin
Level III

Re: Delete columns with same value

When I run this code, it correctly identifies the duplicate cols but doesn't actually delete them.  The log shows no errors.

 

"height equal to height_copy"
"weight equal to weight_copy"
to_delete_lst = {7, 6};
Scriptable[]

 

I am running v13.2.1

Highlighted
Georg
Level IV

Re: Delete columns with same value

Sorry, I cannot answer,

the Code works fine on JMP 15 with Win10 on my Computer,

and the last two steps are quite Basic commands that should have been implemented in JMP 13 already (but I cannot check).

 

Can you perform that both steps of

  • select columns 6+7
  • and delete selected

separately one after the other? e.g. by marking script line in Editor and Pressing the Play button.

Where exactly is the Problem?

 

Georg
Highlighted
txnelson
Super User

Re: Delete columns with same value

I ran this in JMP 13.2.1 and it works.....all you need to do, is to delete the lines in the code

dt << select columns(to_delete_lst);
dt << delete columns;

and replace them with

dt << delete columns( to_delete_lst);
Jim
Highlighted
jimloughlin
Level III

Re: Delete columns with same value

That works !!! Thanx.
Highlighted
jimloughlin
Level III

Re: Delete columns with same value

TXNELSON's post below worked with JMPv13.2.1 .
Article Labels