| na_help | R Documentation |
NA and non-NA valuesAll functions in this group except na0 and ok0 take objects of atomic mode, atomic dtfs, or atomic vlists.
na_help()
na(x)
ok(x)
sub_na(x, sub)
na0(x)
ok0(x)
rm_na(x)
x |
The argument to be inspected/managed. |
sub |
An atomic scalar to replace |
na(): Logically indexes NA values of x. Returns a logical object of the same dimension as x.
ok(): Logically indexes non-NA values of x. Returns a logical object of the same dimension as x.
sub_na(): Substitutes sub for NA values ofx. Modes of x and sub must be compatible. Returns x with NA values replaced.
na0(): Evaluates whether x is an atomic NA scalar. Returns a logical scalar.
ok0(): Evaluates whether x is an atomic, non-NA scalar. Returns a logical scalar.
rm_na(): Removes NA values of x If there are no NA values in x, returns x unchanged. If there are NA values in x, removing them may change the dimensions and/or class of x. Returns x with NA values removed.
Other missingness:
stats0_help()
egNA0 <- NA
egOK0 <- "a"
egVec <- c(egNA0, egOK0)
egMat <- sample(vec, 10, replace = T)
egMat
na(egVec)
ok(egVec)
na(egMat)
ok(egMat)
na0(egNAS)
na0(egOK0)
na0(egVec)
ok0(egOK0)
ok0(egNAS)
ok0(egVec)
sub_na(egMat, "x")
rm_na(egMat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.