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.


fda documentation built on May 31, 2023, 9:19 p.m.