1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

日付をまたぐタイムスタンプの差分を列のまま求める(SPSS Modeler データ加工逆引き4-29)

Last updated at Posted at 2025-06-03

日付をまたぐタイムスタンプの差分を列のまま求める

スクリーンショット 2025-05-29 13.37.27.png

この処理は逆引き1-9を時系列(縦持ち)のまま行う想定しています。

1.想定される利用目的

・IoTデータの特徴量作成
・Webクリックストリーム分析でのデータ加工

2.サンプルストリームのダウンロード

3.サンプルストリームの説明

スクリーンショット 2025-05-29 13.38.39.png

a.入力するデータは以下の通りです。

スクリーンショット 2025-05-29 13.39.55.png

b.[フィールド作成]ノードを編集します。上下のタイムスタンプを比較して分数を出します。日にちをまたいだ場合、1日あたりの分数を足しています。[@￰OFFSET(フィールド,1)]でフィールドの値の1行上を参照します。

スクリーンショット 2025-05-29 13.40.26.png

c.[フィールド作成]ノードを編集します。上下のタイムスタンプを比較して秒数を出します。日にちをまたいだ場合、1日あたりの秒数を足しています。[@￰OFFSET(フィールド,1)]でフィールドの値の1行上を参照します。

スクリーンショット 2025-05-29 13.40.52.png

[テーブル]を実行します。

スクリーンショット 2025-05-29 13.41.35.png

注意事項

常に一つ上のレコードとの比較を行いましたが、特定のフラグがあったレコードまでの分数を数える場合には以下を参考にしてください。

4.参考情報

二つのタイムスタンプ列の比較

SPSS Modeler ノードリファレンス目次

SPSS Modeler 逆引きストリーム集(データ加工)

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?