A helper function -- substitute 'NA's with a specified 'x'. Included at the user level because it's useful for setting up batch jobs.
if.na.x(x, x0 = FALSE)
A numeric vector, equal to the input vector, x
, except with NA
's
replaced by the value, x0
, which the user suplied.
A numeric or boolean vector.
Value with which to replace NA
's. Defaults to 0 or FALSE
.
Grant Izmirlian <izmirlian at nih dot gov>