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

if.na.xR 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>


pwrFDR documentation built on April 11, 2025, 5:47 p.m.