Hola Comunidad JMP,
Así que estoy haciendo un proyecto para un amigo en el que estoy analizando estadísticas para jugadores de cricket en la Liga India. Estoy usando la opción de abrir Internet en JMP para obtener los datos de Internet. Me sale la tabla de abajo. Me pregunto si hay alguna forma a través de JMP o SAS de que pueda combinar las filas con las estadísticas del jugador con la fila que está justo debajo, que tiene el equipo del jugador. Cualquier ayuda sería apreciada.
Gracias
IC

Gracias por tu solución. Edité el script para que las filas con todos los equipos (las filas pares) llenaran una matriz A.
dt= current data table();
// Find all of the rows that have the teams
dt << select where( Substr( :Player, 1, 1 ) == "(" );
A= dt << Get Rows Where(Substr( :Player, 1, 1 ) == "(");
// Copy the team rows to a new table
dt2 = dt << Subset(
Selected Rows( 0 ),
rows(A),
Selected columns only( 0 )
);
// Delete the team rows from the starting data table
dt << delete rows;
// Join the 2 data tables
dt3 = dt << Join( With( dt2 ), By Row Number );Aquí hay una manera de hacer esto. Separa los datos en dos tablas y luego las fusiona en función del número de fila. Estoy haciendo esto con un script, pero el script se creó simplemente siguiendo los pasos interactivos para hacerlo, y copiando los scripts que JMP creó. Estoy utilizando una tabla de datos abreviada, porque soy perezoso y no me gusta escribir.

Names Default To Here( 1 );
// Create a sample data table
dt = New Table( "Untitled 10",
Add Rows( 6 ),
New Column( "Player",
Character,
"Nominal",
Set Values( {"AR Bawne", "(Delhi Daredevils)", "VR Aaron", "(Kings XI Punjab)", "AD Nath", "(Gujarat Lions)"} ),
Set Display Width( 122 )
),
New Column( "Mat",
Character,
"Nominal",
Set Values( {"1", "(Delhi Daredevils)", "6", "(Kings XI Punjab)", "1", "(Gujarat Lions)"} ),
Set Display Width( 137 )
),
New Column( "Inns",
Character,
"Nominal",
Set Values( {"1", "(Delhi Daredevils)", "2", "(Kings XI Punjab)", "1", "(Gujarat Lions)"} ),
Set Display Width( 160 )
)
);
wait(3);
// Find all of the rows that have the teams
dt << select where( Substr( :Player, 1, 1 ) == "(" );
// Copy the team rows to a new table
dt2 = dt << Subset(
Selected Rows( 0 ),
Rows( [2, 4, 6] ),
Selected columns only( 0 )
);
// Delete the team rows from the starting data table
dt << delete rows;
// Change the columns to numeric in the starting data table(just because)
For( i = 2, i <= N Cols( dt ), i++,
Column( dt, i ) << data type( numeric ) <<
modeling type( continuous )
);
// Join the 2 data tables
dt3 = dt << Join( With( dt2 ), By Row Number );