도움을 구합니다....스크립팅 구문이 변경되었는지 궁금합니다.
수천 개의 열이 있는 데이터 테이블에서 일부 통계 및 t-테스트를 실행하고 있습니다. 그런 다음 p-값 열을 정렬하기 위해 요약 '결합 데이터 테이블'을 생성합니다. 그런 다음 p-값을 기준으로 선택/제외하고 싶지만 전혀 작동하지 않는 것 같습니다. 이견있는 사람?
/***********************************/
/*pVal selection*/
// Create the combined data table, using xPath (return a list of the OutlineBoxes from the report that have the title Ordered Differences Report. Then, use the first of those to make the combined data table.)
outlines = (Report( ow1[1] ) << Top Parent) << XPath( "//OutlineBox[text()='Ordered Differences Report']" );
dt1 = outlines[1][Table Box( 1 )] << Make Combined Data Table;
dt1 = current data table();
//Select the rows w/ low pVal, create a String value of all the Column Names, by selected row
pVals = Loc(dt1:"p-Value"n << get as matrix > 0.05);
comparisonStrings = {};
For(i = 1, i <= N Items(pVals), i++,
Insert Into(comparisonStrings, char(dt1:Y[pVals[i]]));
);
show(comparisonStrings);
//Go to source dt, select all Cols that match the string and exclude. You're left with only Cols from charts w low pVal.
dt_Data_Wide << clear select;
dt_Data_Wide << Clear Column Selection();
colList = dt_Data_Wide << Get Column Names( String ); /*gets a list of all columns*/
For( i = 1, i <= N Items( comparisonStrings ), i++,
If( Contains( colList, Char( comparisonStrings[i] ) ),
Column( dt_Data_Wide , Char( comparisonStrings[i] ) ) << Set Selected( 1 ) << exclude( 1 )
)
);
dt_Data_Wide << clear select;
dt_Data_Wide << Clear Column Selection();귀하의 JSL은 내가 실행한 간단한 예제에서 작동하는 것 같습니다.p-값이 .05보다 큰 열에 대해 열 속성을 제외됨으로 설정합니다.무엇이 다르다고 생각하십니까?
"ComparisonStrings" 목록을 생성하고 설정합니다.
소스 테이블의 선택을 지웁니다.
열 이름 목록을 생성합니다.
그러나 선택 및 제외를 위한 루핑은 아무 작업도 수행하지 않는 것 같습니다.



JSL은 "dt1"로 참조하는 데이터 테이블을 변경하는 작업을 수행하지 않습니다. p-값이 .05 이상인 행을 제거하려면 간단히 추가하면 됩니다.
dt1 << select rows(pVals);
dt1 << delete rows;
"Show( comparisonStrings );" 다음에