Function to replace missing (`NA`

) values in a vector.

replmiss(x, y)

## Arguments

x |
vector that may include one or more missing values. |

y |
either a scalar or a vector of the same length as `x` with the value(s) to replace missing values with. |

## Value

Vector `x`

with the missing values replaced based on the scalar or vector `y`

.

## Examples

#> [1] 4 2 7 0 1 0 5

#> [1] 4 2 7 5 1 1 5