write.TSD_fun_numt: Function to be used for extracting the number of time steps...

View source: R/write.TSD_fun_numt.R

write.TSD_fun_numtR Documentation

Function to be used for extracting the number of time steps 'numt' if not given. The function 'fun_numt' is applied to each list element of 'x'. For list variables of 'x' the length is extracted, for matrices the number of columns is extracted and for vectors 'numt' is set to 1.

Description

Function to be used for extracting the number of time steps 'numt' if not given. The function 'fun_numt' is applied to each list element of 'x'. For list variables of 'x' the length is extracted, for matrices the number of columns is extracted and for vectors 'numt' is set to 1.

Usage

write.TSD_fun_numt(y, ts)

Arguments

y

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

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.