Name

miss — converts a specified value to NA

CALLING SEQUENCE

v=miss(mat,val)

PARAMETERS

Input

• mat = a (nxp) matrix

• val = a scalar

Output

• mat = a (nxp) matrix

DESCRIPTION

Function that mimics gauss function miss: converts to NA prespecified values in a matrix

EXAMPLE


x1=ones(7,1);x2=[1:7]';v = miss([x1 x2],7)

 

Example gives the matrix: 

 v  =

!   1.    1. !

!   1.    2. !

!   1.    3. !

!   1.    4. !

!   1.    5. !

!   1.    6. !

!   1.  %Nan !  



               

AUTHOR

Eric Dubois 2004