| 16-NA's | R Documentation |
is.na() ,na.omit(), and na.exclude() for MPCR objects.
## 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)
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. |
MPCR.is.na will return matrix/vector/bool according to input of the function.
MPCR.na.exclude & MPCR.na.omit will not return anything.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.