Suppose I have the following matrix (8x4) matrix
$\begin{bmatrix} 1 & 2 & 3 & 4 & 1 & 0 & 0 & 20 \ 1 & 4 & 5 & 4 & 0 & 1 & 0 & 10 \ 2 & 2 & 3 & 4 & 1 & 0 & 1 & 30 \ 1 & -1 & 2 & -1 & 0 & 0 & 0 & 0 \end{bmatrix}$
I want to create a table in adding the following vector above
$ \begin{bmatrix} &x_1 & x_2 & x_3 & x_4 & \epsilon_1 & \epsilon_2 & \epsilon_3 & b \ \end{bmatrix} $
which will be invariant
and the following column vector on its right
\begin{bmatrix} \epsilon_1 \ \epsilon_2 \ \epsilon_3 \ b \ \end{bmatrix} $
In the following question Concatenation of symbolic vectors.
I have two answers that help me to construct the line vector wihc is a concatenation of two vectors. But I cannot use the answer in the table()
mechanism simply because it doesn't work as expected that is
table(name of the matrix, header_row = name of the line vector)
Is there a way to obtain what I expect. And I have observed that html.table()
doesn't work.
PS I do not understand why the formating doesn't work for the matrix.