이것이 "알고 있는" 사람들을 위한 간단한 수정임이 확실하지만, 나는 그것을 알아내기 위해 고군분투하고 있습니다. 내 한계를 수행하고 누락된 데이터에 "실패"를 할당하는 방법을 알아내야 할 때 pass_fail 열이 있습니다. 동일한 테이블을 사용하여 분포를 플로팅하므로 누락된 데이터에 임의의 숫자를 할당하면 문제가 발생할 수 있습니다.
미리 감사드립니다
Column( dt_split, N Cols( dt_split ) ) << 속성 설정( "값 레이블", {1 = "통과", 0 = "실패", -999 = "실패" } );
colList = dt_split << Get Column Names( numeric, string );
foundCols = "";
i = 2;
For( i = 1, i <= N Items( colList ), i++,
Spec = Column( dt_split, colList[i] ) << Get Property( "Spec Limits" );
If( Is Empty( Spec ) == 0,
dt_split << New Column( (Column( dt_split, colList[i] ) << Get Name) || " Pass_Fail" );
If( Is Missing( Try( Spec["LSL"], . ) ) == 0,
dt_split << Select Where( As Column( dt_split, colList[i] ) < Spec["LSL"] );
Try( Column( dt_split, N Cols( dt_split ) )[dt_split << get selected rows] = 0 );
);
If( Is Missing( Try( Spec["USL"], . ) ) == 0,
dt_split << Select Where( As Column( dt_split, colList[i] ) > Spec["USL"], Current Selection( "Extend" ) );
Try( Column( dt_split, N Cols( dt_split ) )[dt_split << Get Selected Rows] = 0 );
);
Wait( 0.5 );
dt_split << Invert Row Selection;
Wait( 0.5 );
ColNotes = Eval( test ) || "_" || "PassFail";
Try( Column( dt_split, N Cols( dt_split ) )[dt_split << Get Selected Rows] = 1 );
Column( dt_split, N Cols( dt_split ) ) << Set Property( "Value Labels", {1 = "Pass", 0 = "Fail", -999 = "Fail" } );
Column( dt_split, N Cols( dt_split ) ) << Set Property( "Value Ordering", {1, 0} );
Column( dt_split, N Cols( dt_split ) ) << Set Property( "Description", "PASS_FAIL" );
Column( dt_split, N Cols( dt_split ) ) << Set Property( "Notes", ColNotes );
If( foundCols == "",
foundCols = ":Name(\!"" || (Column( dt_split, colList[i] ) << Get Name) || " Pass_Fail\!")",
foundCols = foundCols || ", " || ":Name(\!"" || (Column( dt_split, colList[i] ) << Get Name) || " Pass_Fail\!")"
);
);
dt_split << Clear Select;
);
col << 속성 설정( "값 레이블", {1 = "통과", 0 = "실패", 999 = "실패"} );
누락된 값에 대해 값 레이블을 사용하려는 경우. Set 속성에서 직접 사용할 수 있어야 합니다.
col << Set Property( "Value Labels", {. = "Fail", 1 = "Pass", 0 = "Fail", 999 = "Fail"} );편집하다:
또한 해당 999개에 "임의의 숫자"가 포함된 데이터가 이미 누락되어 있다면? 결측값 코드 열 속성을 사용하여 분석에서 숨길 수도 있습니다.

Set Property("Missing Value Codes", {999})