NAFunctions: NA's

15-NA'sR Documentation

NA's

Description

is.na() ,na.omit(), and na.exclude() for MPCR objects.

Usage

## S4 method for signature 'Rcpp_MPCR'
MPCR.is.na(object,index=-1)
## S4 method for signature 'Rcpp_MPCR'
MPCR.na.exclude(object,value)
## S4 method for signature 'Rcpp_MPCR'
MPCR.na.omit(object)

Arguments

object

MPCR object.

index

If a particular index in the MPCR matrix/vector is specified, it will be checked. If no index is provided, all elements will be checked.

value

Value to replace all NAN with.

Value

MPCR.is.na will return matrix/vector/bool according to input of the function.
MPCR.na.exclude & MPCR.na.omit will not return anything.

Examples

  
library(MPCR)
x <- as.MPCR(1:20,precision="single")
x[1] <- NaN
MPCR.is.na(x,index=1) #TRUE
MPCR.na.exclude(x,50)
x[1]  #50


MPCR documentation built on Aug. 23, 2026, 5:10 p.m.

Related to NAFunctions in MPCR...