檢查列是否包含子字串我想根據涉及 2 列的條件使用 jsl 建立一個新列。我可以用通俗語言描述如下:
New Column( "Condition",
Character,
"Nominal",
Formula(
If( Column A contains substring "REF" then return Word(4, Column B, "_")
else return Word(4, Column A, "_")
)
)你能幫我解決 if 語句中的語法嗎?
基礎資料分析與建模資料存取資料混合與清理數據探索和視覺化回覆:檢查列是否包含子字串
If(Contains("A_B_C", "B"),
Word(1, "D_C", "_")
,
Word(2, "A_Z", "_")
)
是使用 Contains 和 Word 的範例。將硬編碼字串替換為字元列引用