Learn R Programming

pwrFDR (version 3.2.4)

if.na.x: A helper function -- substitute 'NA's with a specified 'x'.

Description

A helper function -- substitute 'NA's with a specified 'x'. Included at the user level because it's useful for setting up batch jobs.

Usage

if.na.x(x, x0 = FALSE)

Value

A numeric vector, equal to the input vector, x, except with NA's replaced by the value, x0, which the user suplied.

Arguments

x

A numeric or boolean vector.

x0

Value with which to replace NA's. Defaults to 0 or FALSE.

Author

Grant Izmirlian <izmirlian at nih dot gov>