Missing("") 是否返回 True?我想區分一個空間單元格和一個空單元格。這不見了()函數將兩者都解釋為缺失。有沒有更好的辦法?
我正在使用 JMP 16.2.0。
New Table( "Example",
Add Rows( 1 ),
New Column( "Empty", Character, "Nominal", Set Values( {""} ) ),
New Column( "Empty Missing?",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula( Is Missing( :Empty ) )
),
New Column( "Space", Character, "Nominal", Set Values( {" "} ) ),
New Column( "Space Missing?",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula( Is Missing( :Space ) )
)
)其他回复: Missing(" ") 是否返回 True?空白只是“”,似乎 JMP 將空格的輸入修剪為再次空白。
Names default to here(1);
dt = New Table( "Example",
New Column( "Fun", Character, Set Values( {" ", "", "A"} ) ),
New Column("State", character, Formula(
Match(:Fun,
"", "Blank",
" ", "Space"
, // else
"Filled"
)
))
);
dt:Fun << Get Values(); // {"", "", "A"}
至少在 16.2
我知道在早期版本中,您甚至無法對非數字執行 ismissing() 。
回复: Missing(" ") 是否返回 True?添加到@vince_faller , JMP 在輸入數據表時確實將“”轉換為“”,但是,它不會將“a”轉換為“a”。也就是說,當給定單元格中確實存在有效字符時,JMP 會保留前導空格(“20”十六進制)。JMP 還有用於輸入空格(\!b)(“08”十六進制)和空值(\!0)(“”十六進制)的轉義字符串。