Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
与えられたデータセットからいくつかの派生フィールドを生成しています。以下は、そのような派生フィールドの 1 つの例です。生年月日から年齢を計算しています。そのような計算のために pmml コードを生成する方法はありますか?
年齢 <- as.numeric(format(Sys.Date(), "%Y")) - as.numeric(format(as.Date(birth_date, "%m/%d/%Y"), "%Y") )))
PMML組み込み関数 dateDaysSinceYearとdateSecondsSinceYear.
dateDaysSinceYear
dateSecondsSinceYear