sparse.mat: Creates a matrix of sparse data with NAs out of a list

View source: R/sparse.mat.R

sparse.matR Documentation

Creates a matrix of sparse data with NAs out of a list

Description

Creates a matrix or three dimensional array of sparse data with NAs from a list of sparse data. The number of columns of the matrix will be equal to the length of the list (replications)

Usage

  sparse.mat(datalist)

Arguments

datalist

A list object. Each element must be a matrix object where the rows correspond to argument values per individual. First column corresponds to time points and the following columns to argument values per variable.

Value

a matrix or array with ncol = length(datalist). First dimension corresponds to point observations, second dimension corresponds to replications and third dimension corresponds to variables.

References

Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009), Functional data analysis with R and Matlab, Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2005), Functional Data Analysis, 2nd ed., Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2002), Applied Functional Data Analysis, Springer, New York.


fda documentation built on May 29, 2024, 11:26 a.m.