행 값의 변경 사항을 어떻게 계산합니까?다음과 같은 반복 값 블록이 있는 큰 데이터 세트가 있습니다.
ㅏ
ㅏ
비
ㅏ
씨
씨
씨
행 값의 변경 수, 즉 연속적으로 반복되는 행을 무시하는 행 수를 계산하고 싶습니다.이 예에서 개수는 4가 됩니다(세 번째 'A'는 'B'에서 변경되었으므로 계산됩니다).JMP가 반복되고 연속적인 중복을 무시하도록 하는 방법이 있습니까?
JMP 15.2.1을 사용하고 있습니다.
데이터 테이블Re: 행 값의 변경 사항을 어떻게 계산합니까?이를 처리하는 몇 가지 방법이 있습니다.

Names Default To Here( 1 );
dt = Current Data Table();
For Each Row(
If(
Row() == 1, count = 1,
:column 1 != Lag( :column 1 ), count
++)
);
Show( count );
// Look in the log for the value of count
// or
dt << New Column( "The Count",
formula(
If(
Row() == 1, count = 1,
:column 1 != Lag( :column 1 ), count
++);
count;
)
);
Re: 행 값의 변경 사항을 어떻게 계산합니까?한 가지 방법은 Lag를 사용하여 수식을 만든 다음 해당 열의 최대 값을 얻을 수 있습니다.
If(
Row() == 1,
counter = 1;
, Lag(:col, 1) != :col,
counter++
);
counter;
</CODE><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1647639220121.png" style="width: 400px;"><IMG src="https://us.v-cdn.net/6038925/uploads/images/40960i3683E856360E0C73/jthi_0-1647639220121.png" role="button" title="jthi_0-1647639220121.png" alt="jthi_0-1647639220121.png" /></SPAN></P>
<P> </P>
<P> </P>
<P>다음과 같은 것도 작동할 수 있습니다.</P>
<P> </P>
<PRE><CODE class=" language-jsl">Col Cumulative Sum(Lag(:col) != :col)