cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
chandankishor66
Level III

Making exact clone of a column

HI JMP users,

 

am looking for your help to make identical clone of a column through JMP scipt.

I don't want to select the "Date" column to make a identical column instead script should be able to recognize "Date" column and make a clone column.

 

chandankishor66_1-1664552002693.png

Regards

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Making exact clone of a column

This should create a new column with a different name. Modify this example as necessary for your purpose.

 

Names Default to Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

expr = :weight << Get Script;

Eval(
	Parse(
		Substitute(
			"dt << " || Char( Name Expr( expr ) ),
			"weight",
			"weight 2"
		)
	)
);

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Making exact clone of a column

By "exact" clone do you mean to copy all formatting, column properties and values?

-Jarmo

Re: Making exact clone of a column

This should create a new column with a different name. Modify this example as necessary for your purpose.

 

Names Default to Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

expr = :weight << Get Script;

Eval(
	Parse(
		Substitute(
			"dt << " || Char( Name Expr( expr ) ),
			"weight",
			"weight 2"
		)
	)
);

Recommended Articles