Learn R Programming

MARSS (version 3.2)

MARSSapplynames: Names for marssMLE Object Components

Description

Puts names on the matrix components of marssMLE and marssm objects. This is a utility function in the MARSS-package and is not directly accessible. Use MARSS:::MARSSapplynames() to access.

Usage

MARSSapplynames(obj, Y.names = NA, X.names = NA)

Arguments

obj
An object of class marssMLE or marssm.
Y.names
Vector of names for observed time series.
X.names
Vector of names for the hidden state trajectories.

Value

  • The object passed in, with row and column names on matrices as specified.

Details

Default behavior will use names rownames of data (if available, and if not Y1, Y2, ...) for the Ys and all matrices that are n x ... and use X1, X2, ... for the Xs and all matrices that are m x ... .

See Also

marssMLE marssm