cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
%3CLINGO-SUB%20id%3D%22lingo-sub-717745%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%C2%BFC%C3%B3mo%20creo%20una%20nueva%20tabla%20usando%20otras%20columnas%3F%20(obtener%20columnas%20de%20diferentes%20tablas)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-717745%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0A%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0Adt1%20%3D%20Open(%20%22%24SAMPLE_DATA%2FIris.jmp%22%20)%3B%0A%0ANew%20Table(%20%22Merge%20Columns%22%2C%0A%20Add%20columns(%203%20)%2C%0A%20Add%20rows(100)%2C%0A%20New%20Column(%20%221st%22%2C%0A%20%20%0A%20%20Set%20Values(%20column(dt%2C%203%20)%20)%0A%20)%2C%0A%20New%20Column(%20%222nd%22%2C%0A%20%20%0A%20%20Set%20Values(%20column(dt%2C%201)%20)%0A%20)%2C%0A%20New%20Column(%20%223rd%22%2C%0A%20%0A%20%20Set%20Values(%20column(dt1%2C%201)%20)%0A%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EHola%20a%20todos.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EQuiero%20crear%20una%20nueva%20tabla%20obteniendo%20otras%20columnas%20de%20diferentes%20tablas.%3C%2FP%3E%3CP%3E%C2%BFC%C3%B3mo%20puedo%20hacer%20eso%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-717745%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EAutomatizaci%C3%B3n%20y%20secuencias%20de%20comandos%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAn%C3%A1lisis%20y%20modelado%20de%20datos%20b%C3%A1sicos%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-717753%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%C2%BFC%C3%B3mo%20creo%20una%20nueva%20tabla%20usando%20otras%20columnas%3F%20(obtener%20columnas%20de%20diferentes%20tablas)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-717753%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EUnirse%20es%20probablemente%20la%20mejor%20opci%C3%B3n%20(combinar%20por%20n%C3%BAmero%20de%20fila%20si%20no%20tiene%20ninguna%20columna%20para%20usar).%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_0-1705571641478.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1705571641478.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1705571641478.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F60406i9FFB6338B82CAEDA%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_0-1705571641478.png%22%20alt%3D%22jthi_0-1705571641478.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ELuego%20elimine%20las%20filas%20adicionales%20que%20no%20necesita%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

How do I create a new table using another columns?(get columns from different tables)

Names Default To Here( 1 );

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

New Table( "Merge Columns",
	Add columns( 3 ),
	Add rows(100),
	New Column( "1st",
		
		Set Values( column(dt, 3 ) )
	),
	New Column( "2nd",
		
		Set Values( column(dt, 1) )
	),
	New Column( "3rd",
	
		Set Values( column(dt1, 1) )
	)
);

Hi all.

 

I want to make a new table getting another columns by different tables.

How can I do that?

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How do I create a new table using another columns?(get columns from different tables)

Join is most likely the best option (match by row number if you don't have any column to use).

jthi_0-1705571641478.png

Then delete extra rows you don't need

-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: How do I create a new table using another columns?(get columns from different tables)

Join is most likely the best option (match by row number if you don't have any column to use).

jthi_0-1705571641478.png

Then delete extra rows you don't need

-Jarmo

Recommended Articles