write.TSD_fun_lvar: Function extracting the lengths of the variables, if not...

View source: R/write.TSD_fun_lvar.R

write.TSD_fun_lvarR Documentation

Function extracting the lengths of the variables, if not specified (a matrix of dimension [numt, nvar]).

Description

Function extracting the lengths of the variables, if not specified (a matrix of dimension [numt, nvar]).

Usage

write.TSD_fun_lvar(y, numt, ts)

Arguments

y

is an R object accepted by write.TSD().

numt

is the number of time steps.

ts

is a numeric vector specifying the rules for regarding the last dimensions of arrays as time: If the number of dimensions of an array is included in the set 'ts' the last dimension of that array is considered to be along time, so that if ts=3 and we wish to write an array of dimension [3, 4, 2], this array will be written as two [3, 4] arrays. 'ts' is utilized through seq_along(dim(x))[ts], so that if ts=-2 matrices are not regarded as having time along the second dimension.


arnejohannesholmin/TSD documentation built on April 14, 2024, 5:29 a.m.