4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

タイムスタンプから日付だけを抽出する(SPSS Modeler データ加工逆引き1-19)

Last updated at Posted at 2024-03-05

タイムスタンプから日付だけを抽出する

スクリーンショット 2024-03-04 10.22.55.png

1.想定される利用目的

・集計/観察の粒度を秒から日に変更する

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

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

スクリーンショット 2024-03-04 10.23.26.png

a.入力するデータは以下の通りです。
スクリーンショット 2024-03-04 10.24.40.png

タイムスタンプ型から日付型へ

b.[フィールド作成]ノードを編集します。シンブルな型変換で秒以下がなくなります。
スクリーンショット 2024-03-04 10.25.08.png

[プレビュー]します。
スクリーンショット 2024-03-04 10.33.50.png

文字列型から日付型へ

c.[フィールド作成]ノードを編集します。先頭文字列N文字を残す関数startstringを利用します。

スクリーンショット 2024-03-04 10.25.24.png

[プレビュー]します。

スクリーンショット 2024-03-04 10.25.46.png

注意事項

時間に関するフィールドは計算の有無や扱いやすさで文字列か日付型かを選択します。

4.参考情報

タイムスタンプの差の計算

よく使う「日付と時間」関数

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

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

4
2
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
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?