NA2x: Convert to/from NA

Description Usage Arguments Value Author(s) Examples

View source: R/NA2x.R

Description

Convert vector to/from NA

Usage

1
NA2x(s, x = 0)

Arguments

s

The input vector (of arbitrary class)

x

The elements to transform into NA resp. what to transform NA into.

Value

A vector with same dimension and class as s.

Author(s)

Klaus K. Holst

Examples

1
2
3
##' 
x2NA(1:10, 1:5)
NA2x(x2NA(c(1:10),5),5)##'

kkholst/lava documentation built on Sept. 27, 2020, 2:34 p.m.