Tabulate 객체를 새 데이터 테이블로 만드는 스크립트를 만들려고 하다가 문제가 생겼습니다. 아래 두 구문을 모두 시도했지만, 둘 다 테이블을 만들지 못했습니다. 더 큰 워크플로의 한 단계로 사용하고 있습니다.
t2 = tbl << Tabulate(
Add Table(
Column Table( Grouping Columns( :Treatment ) ),
Row Table(
Analysis Columns(
:"Attribute 1"n,
:"Attribute 2"n,
:"Attribute 3"n,
:"Attribute 4"n,
:"Attribute 5"n, :"Attribute 6"n,
:"Attribute 7"n, :"Attribute 8"n,
:"Attribute 9"n,
:"Attribute 10"n, :"Attribute 11"n
),
Statistics( Mean )
)
),
Local Data Filter(
Mode( Show( 0 ) ),
Add Filter( columns( :A or B), Where( :A or B == "A" ) )
),
)) << Make Into Data Table();
그리고
t2 = tbl << Tabulate(
Add Table(
Column Table( Grouping Columns( :Treatment ) ),
Row Table(
Analysis Columns(
:"Attribute 1"n,
:"Attribute 2"n,
:"Attribute 3"n,
:"Attribute 4"n,
:"Attribute 5"n, :"Attribute 6"n,
:"Attribute 7"n, :"Attribute 8"n,
:"Attribute 9"n,
:"Attribute 10"n, :"Attribute 11"n
),
Statistics( Mean )
)
),
Local Data Filter(
Mode( Show( 0 ) ),
Add Filter( columns( :A or B), Where( :A or B == "A" ) )
),
));
Wait(1);
t2 << Make Into Data Table();
저는 JMP 17.2를 사용하고 있습니다.
음, 흥미롭네요.
첫 번째 예에서, 괄호를 추가하면 작동해야 합니다. 괄호 없이 메시지를 테이블로 보내고 Tabulate 객체로 보내지 않습니다.
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
(dt << Tabulate(
Add Table(
Column Table( Analysis Columns( :height ) ),
Row Table( Grouping Columns( :sex ) )
)
)) << Make Into Data Table();
두 번째 옵션이 작동해야 합니다. 아마 오타가 있나요?
가장 쉬운 방법:
GUI를 사용한 다음 로그로 가서 "코드를 훔치세요".
괄호를 추가하면 해결됩니다. 이 모든 문제는 오타에서 비롯된 것입니다. 감사합니다!