Re:式これが私が思いついた式です、それはうまくいくようです。
If( Row() == 1,
value = 1;
counter = 1;
);
If( :X__1 != Lag( :X__1 ),
counter = 1;
While( :X__1 == :X__1[Row() + counter] | Row() + counter == N Rows( Current Data Table() ), counter++ );
value = counter;
,
value = .
);
value;
Re:式こんにちは、
これはうまくいきます!
これが何を意味するのか説明してください。
もし(:X__1!= Lag(:X__1)、
...
カウンター= 1; while(:X__1 ==:X__1 [Row()+ counter] | Row()+ counter == N Rows(Current Data Table())、counter ++););
値=カウンター。
、
値=。
);
値;
どこで読んだり、それについて学ぶことができますか?
どうもありがとう!
Re:式問題のスクリプトの関数とステートメントに関するすべての情報は、ヘルププルダウンメニューの下にあるスクリプトガイドにあります。
Help ==> JMPドキュメントライブラリスクリプトガイド
以下が式の理解に役立つことを願っています
// The entire script will be run for each row in the
// in the data table
// On row 1 set default values
If( Row() == 1,
value = 1;
counter = 1;
);
// If the value of X__1 has changed check to see if
// more than one row has this new value of X__1
If( :X__1 != Lag( :X__1 ),
counter = 1;
While(
:X__1 == :X__1[Row() + counter]
|
Row() + counter == N Rows( Current Data Table() ),
counter
++);
value = counter;
,
// If this is not a row that has a new value of X__1
// then set the value to a missing value
value = .
);
// A JMP formula always takes the results of the last item
// processed, and makes that the value for the formula
// columns current row so by placing the variable that
// holds that value as the last item processed in the
// script, we ensure the correct value is placed into
// the data table
value;
式こんにちは、
各個人の連続したシリーズの長さをファイルから計算したいと思います。
JMP Proでこれを式で計算するにはどうすればよいですか?
手作業で、既に列シーケンスにいくつかのシーケンスを入力しています。
X_4 =シーケンス
ありがとう。