On Thu, Jan 11, 2024 at 3:22 AM Artur T. <atecon(a)posteo.de> wrote:
I am not sure whether the following is actually intended or not. The
help does not mention any limits, though.
For a project, I stumbled over the following:
1. Create a matrix of residuals with NAs as initial values.
2. Name the columns of the matrix.
3. Store the columns of the matrix as series using the mat2list() function.
In my case, I did not pass any prefix as a 2nd optional argument to
mat2list(). The names of the matrix columns are the same as _already_
existing series. This implies that the application of mat2list()
over-writes existing series values.
It seems to me that behavior you saw is implicit in the help text for
mat2list: "if [the matrix in question] has column names set (see
cnameset) these names are used."
If the column names are names of existing series and you don't want
those series to be overwritten, then delete the column names, set
column names that are distinct from existing series, or use the prefix
option.
Allin Cottrell