Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

na.omit.fdata

A wrapper for the na.omit and na.fail function for fdata object


Description

na.fail returns the object if it does not contain any missing values, and signals an error otherwise. na.omit returns the object with incomplete cases removed. If na.omit.fdata removes cases, the row numbers of the cases form the "na.action" attribute of the result, of class "omit", see generic function na.omit.

Usage

## S3 method for class 'fdata'
na.omit(object, ...)

## S3 method for class 'fdata'
na.fail(object, ...)

Arguments

object

an fdata object.

...

further potential arguments passed to methods.

Value

The value returned from omit is a fdata object with incomplete cases removed.

Author(s)

Manuel Febrero Bande and Manuel Oviedo

Examples

## Not run: 
fdataobj<-fdata(MontrealTemp)
fdataobj$data[3,3]<-NA
fdataobj$data[10,]<-NA
fdastaobj2<-na.omit(fdataobj)

## End(Not run)

fda.usc

Functional Data Analysis and Utilities for Statistical Computing

v2.0.2
GPL-2
Authors
Manuel Febrero Bande [aut], Manuel Oviedo de la Fuente [aut, cre], Pedro Galeano [ctb], Alicia Nieto [ctb], Eduardo Garcia-Portugues [ctb]
Initial release
2020-02-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.