NA2x function

Convert to/from NA

Convert to/from NA

Convert vector to/from NA

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.

Returns

A vector with same dimension and class as s.

Examples

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

Author(s)

Klaus K. Holst

  • Maintainer: Klaus K. Holst
  • License: GPL-3
  • Last published: 2025-01-12