File: anyMissing.Rd

package info (click to toggle)
r-bioc-alabaster.base 1.6.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,652 kB
  • sloc: cpp: 11,377; sh: 29; makefile: 2
file content (36 lines) | stat: -rw-r--r-- 856 bytes parent folder | download | duplicates (2)
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
31
32
33
34
35
36
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/anyMissing.R
\name{anyMissing}
\alias{anyMissing}
\alias{is.missing}
\title{Find missing values}
\usage{
anyMissing(x)

is.missing(x)
}
\arguments{
\item{x}{Vector or array of atomic values.}
}
\value{
For \code{anyMissing}, a logical scalar indicating whether any \code{NA} values were present in \code{x}.

For \code{is.missing}, a logical vector or array of shape equal to \code{x}, indicating whether each value is \code{NA}.
}
\description{
Find missing (\code{NA}) values.
This is smart enough to distinguish them from NaN values in numeric \code{x}.
For all other types, it just calls \code{\link{is.na}} or \code{\link{anyNA}}.
}
\examples{
anyNA(c(NaN))
anyNA(c(NA))
anyMissing(c(NaN))
anyMissing(c(NA))

is.na(c(NA, NaN))
is.missing(c(NA, NaN))
}
\author{
Aaron Lun
}