replace a very large neagtive number with something - usually NA_REAL
replaceInVector(v, r, x)
v
r
x
Useful links