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

ldata

ldata class definition and utilities


Description

ldata is a list with two type of objects:

  • df is a data frame with the multivariate data with n rows.

  • ... fdata objects of class fdata with n rows.

Usage

ldata(df, ..., mfdata)

## S3 method for class 'ldata'
names(x)

is.ldata(x)

## S3 method for class 'ldata'
x[i, row = FALSE]

## S3 method for class 'ldata'
subset(x, subset, ...)

## S3 method for class 'ldata'
plot(x, ask = FALSE, color, var.name, ...)

Arguments

df

data frame

...

Further arguments passed to methods.

mfdata

list of fdata objects

i

index

row

logical If FALSE (by default), i index selects the variables. If TRUE, i index selects the observations.

subset

subset

ask

logilcal If TRUE (and the R session is interactive) the user is asked for input, before a new figure is drawn.

color

colors to interpolate; must be a valid argument to colorRampPalette.

var.name

name of continuous univariate variable used in color argument

ldata, x

object of class ldata

Examples

data(tecator)
ab0 <- tecator$absorp.fdata
ab1 <- fdata.deriv(ab0)
ab2 <- fdata.deriv(ab0,nderiv=2)
ldat<-ldata(tecator$y,ab1=ab1,ab2=ab2)
is.ldata(ldat)
class(ldat)
plot(ldat[[1]])
plot(ldat[[2]]) 
# plot(ldat)
# plot(ldat,var.name="Fat")

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.