ismissm()

Read(269) Label: matrix, missing value,

Description:

Find missing values in a matrix.

Syntax:

A.ismissm()

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

A.ismissm(indicator)

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

Note:

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

Parameter:

A

A two-dimensional sequence

indicator

A number/string/sequence

Return value:

Sequence

Example:

 

A

 

1

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

 

2

=A1.ismissm()

3

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

 

4

=A3.ismissm()

5

=[[1,1,1,1,0,1,1,1],[1,1,1,1,0,1,1,1],[0,0,0,0,1,0,1]]

 

6

=0

 

7

=A5.ismissm(A6)

8

=[0]

 

9

=A5.ismissm(A8)

10

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

 

11

=["two"]

 

12

=A10.ismissm(A11)