メイン コンテンツをスキップする 補完的コンテンツへスキップ

TRANSLATE

指定された辞書を使用して、指定された値を変換します。

構文

TRANSLATE(dictionary, keepValuesWithoutTranslation, emptyAsNull, input)

引数

名前 説明 既定値
dictionary string
keepValuesWithoutTranslation boolean 特徴量内の値にマッピングされていない値を保持するかどうか
emptyAsNull boolean 設定されている場合、空の値は null として扱われます
input string/numeric

戻り値

string の値を返します。


dictionary keepValuesWithoutTranslation emptyAsNull input 出力
'a,Antman
b,Batman
d,' false false 'a' `Antman`
'a,Antman
b,Batman
d,' false false 'b' `Batman`
'a,Antman
b,Batman
d,' false false 'c' null
'a,Antman
b,Batman
d,' true false 'c' `c`
'a,Antman
b,Batman
d,' true true 'd' null
'a,Antman
b,Batman
d,' true false 'd' ``
'1234.0,good' false false 1234 `good`
'1234.0,good' false false 1234 `good`
'0.0,good' false false 0 `good`
'-0.0,good' false false 0 `good`
'-0.0,good' false false 0 `good`
'1.23456e17,good' false false 123456000000000000 `good`
'6.000000000000001,good' false false 6 null

このページは役に立ちましたか?

このページまたはコンテンツにタイポ、ステップの省略、技術的エラーなどの問題が見つかった場合はお知らせください。