File: NA2x.Rd

package info (click to toggle)
r-cran-lava 1.8.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,816 kB
  • sloc: sh: 13; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NA2x.R
\name{NA2x}
\alias{NA2x}
\alias{x2NA}
\title{Convert to/from NA}
\usage{
NA2x(s, x = 0)
}
\arguments{
\item{s}{The input vector (of arbitrary class)}

\item{x}{The elements to transform into \code{NA} resp. what to transform
\code{NA} into.}
}
\value{
A vector with same dimension and class as \code{s}.
}
\description{
Convert vector to/from NA
}
\examples{
##' 
x2NA(1:10, 1:5)
NA2x(x2NA(c(1:10),5),5)##'
}
\author{
Klaus K. Holst
}
\keyword{manip}