MathTop

select_non_numeric 函数

返回不能作为数值处理的元素。

语法

  • Statistics:-SelectNonNumeric(list)
  • Statistics:-SelectNonNumeric(list, ignore = true)
  • select_non_numeric(list)

参数与选项

list形如 [1, 2, 3] 的列表字面量。
ignore为 true 时从选中结果中丢弃缺失值。

示例

  1. 选出非数值项Statistics:-SelectNonNumeric([1, x, 2.5, missing, pi])返回 [x, missing]。