ismiss()

Read(632) Label: vector, missing value,

Description:

Find missing values in a vector.

Syntax:

A.ismiss()

Find the null values or empty strings in vector A and return a vector the same size as A

A.ismiss(indicator)

Find the specified value indicator in vector A and return a vector the same size as A

Note:

The function marks missing values in the return value with 1.

Parameter:

A

One-dimensional sequence

indicator

A number/string/sequence

Return value:

Sequence

Example:

 

A

 

1

=[1,2,3,,2,,1,1,1,1]

 

2

=A1.ismiss()

3

=["one",,"three","four",," ","ten"]

 

4

=A3.ismiss()

5

=[1,2,3,4,5,1,2,3,4]

 

6

=3

 

7

=A5.ismiss(A6)

8

=[3]

 

9

=A5.ismiss(A8)

 

10

=["one","one","two","one","one"]

 

11

="two"

 

12

=A10.ismiss(A11)