Name
missrv — converts a NA to a specified value
CALLING SEQUENCE
v=missrv(mat,val)
PARAMETERS
- Input
mat = a (nxp) matrix
val = a scalar
- Output
mat = a (nxp) matrix
DESCRIPTION
Function that mimics gauss function missrv: converts NA to prespecified values in a matrix
EXAMPLE
x1=ones(7,1);x1(2)=%nan;x1(5)=%nan;z=missrv(x1,5)
//returns:
//z =
//! 1. !
//! 5. !
//! 1. !
//! 1. !
//! 5. !
//! 1. !
//! 1. !