fda.usc (version 2.0.2)

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 fdata
na.omit(object, ...)

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

Value

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

Arguments

object

an fdata object.

...

further potential arguments passed to methods.

Author

Manuel Febrero Bande and Manuel Oviedo

Examples

Run this code
if (FALSE) {
fdataobj<-fdata(MontrealTemp)
fdataobj$data[3,3]<-NA
fdataobj$data[10,]<-NA
fdastaobj2<-na.omit(fdataobj)
} 

Run the code above in your browser using DataCamp Workspace