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

sparse.list

Creates a list of sparse data from a matrix


Description

Creates a list with sparse data from a matrix that has NAs. The length of the list will be equal to the number of columns in the data matrix (replications)

Usage

sparse.list(data,time)

Arguments

data

If the set is supplied as a matrix object, the rows must correspond to argument values and columns to replications, and it will be assumed that there is only one variable per observation. If y is a three-dimensional array, the first dimension corresponds to argument values, the second to replications, and the third to variables within replications.

time

Time points where the observations where taken.

Value

a list with length dim(data)[2]. Each element of the list is a matrix with ncol > 1. The first column of each element corresponds to the point index per observation.

See Also


fda

Functional Data Analysis

v5.1.9
GPL (>= 2)
Authors
J. O. Ramsay <ramsay@psych.mcgill.ca> [aut,cre], Spencer Graves <spencer.graves@effectivedefense.org> [ctb], Giles Hooker <gjh27@cornell.edu> [ctb]
Initial release
2020-12-16

We don't support your browser anymore

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