NRV.omit: Remove NA values

View source: R/SOptim_AuxFunctions.R

NRV.omitR Documentation

Remove NA values

Description

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.

Usage

NRV.omit(x)

Arguments

x

Either a vector, matrix or data frame.

Details

This function was adapted from IDPmisc package (URL: https://github.com/cran/IDPmisc/blob/master/R/NaRV.omit.R).

Value

Returns the original object without NA values. An attribute named "na.action" is returned as a list containing the original indices that were removed.


joaofgoncalves/SegOptim documentation built on Feb. 5, 2024, 11:10 p.m.