안녕하세요 JMP 커뮤니티,
그래서 나는 인도 리그에서 크리켓 선수들을위한 통계를 분석하고있는 친구를위한 프로젝트를 진행하고 있습니다. JMP에서 인터넷 열기 옵션을 사용하여 인터넷에서 데이터를 가져옵니다. 나는 아래 표를 얻는다. JMP 나 SAS를 통해 플레이어의 팀이있는 행 바로 아래에 플레이어의 통계가있는 행을 병합 할 수 있는지 궁금합니다. 어떤 도움이든지 도움이 될 것입니다.
고맙습니다
IC

귀하의 솔루션에 감사드립니다. 모든 팀 (짝수 행)이있는 행이 행렬 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 );이를 수행하는 한 가지 방법이 있습니다. 데이터를 두 개의 테이블로 분리 한 다음 행 번호에 따라 이들을 병합합니다. 스크립트로이 작업을 수행하고 있지만이 작업을 수행하고 JMP에서 만든 스크립트를 복사하는 대화 형 단계를 거쳐 스크립트가 작성되었습니다. 나는 게으르며 입력하기를 원하지 않기 때문에 단축 된 데이터 테이블을 사용하고 있습니다.

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