Ch27-if-y-z: A helper function - substitute 'y"s with a specified 'z'.

Description Usage Arguments Value Author(s)

Description

A helper function – in a numeric vector, substitute values equal to 'y' with user specified 'z'. Included at the user level because it's useful for setting up batch jobs.

Usage

1
  if.y.z(x, y = 0, z = 1)

Arguments

x

A numeric, character or boolean vector

y

The valued to be swapped out

z

The value which replaces swapped out values

Value

A numeric, character or boolean vector, equal to the input vector, x, except with occurences y replaced with the value z

Author(s)

Grant Izmirlian <izmirlian at nih dot gov>


pwrFDR documentation built on May 12, 2021, 5:07 p.m.

Related to Ch27-if-y-z in pwrFDR...