View source: R/SOptim_AuxFunctions.R
NRV.omit | R Documentation |
An useful function to remove NA values for vector, matrices or data frames. By default removes all NA values in each column of a matrix or data frame.
NRV.omit(x)
x |
Either a vector, matrix or data frame. |
This function was adapted from IDPmisc package (URL: https://github.com/cran/IDPmisc/blob/master/R/NaRV.omit.R).
Returns the original object without NA
values. An attribute named
"na.action"
is returned as a list containing the original indices that were
removed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.