Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

NA2x

Convert to/from NA


Description

Convert vector to/from NA

Usage

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

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

lava

Latent Variable Models

v1.6.10
GPL-3
Authors
Klaus K. Holst [aut, cre], Brice Ozenne [ctb], Thomas Gerds [ctb]
Initial release
2021-09-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.