fda.usc (version 1.5.0)

order.fdata: A wrapper for the order function

Description

The funcional data is ordered w.r.t the sample order of the values of vector.

Usage

# S3 method for fdata
order(y,fdataobj,na.last = TRUE, decreasing = FALSE)

Arguments

y

a sequence of numeric, complex, character or logical vectors, all of the same length, or a classed R object.

fdataobj

fdata class object.

na.last

for controlling the treatment of NAs. If TRUE, missing values in the data are put last; if FALSE, they are put first; if NA, they are removed; if "keep" they are kept with rank NA.

decreasing

logical. Should the sort order be increasing or decreasing?.

Value

order.fdata returns the functional data fdataobj w.r.t. a permutation which rearranges its first argument into ascending or descending order.