if.na.x {pwrFDR}R Documentation

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)

Arguments

x

A numeric or boolean vector.

x0

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

Value

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

Author(s)

Grant Izmirlian <izmirlian at nih dot gov>


[Package pwrFDR version 2.8.9 Index]