Transpose vector extracted from a matrix
Hello,
I am doing a recursive analysis that uses every line (vector) of a matrix in
a loop. In the model, I need to transpose those vectors that are extracted
from a matrix.
Using simple vectors (no matrix involved) the transpose function works fine:
Use the notation x[ , 1, drop = FALSE]
See ?[
On 7/27/06, Neuro LeSuperHéros [EMAIL PROTECTED] wrote:
Transpose vector extracted from a matrix
Hello,
I am doing a recursive analysis that uses every line (vector) of a matrix in
a loop. In the model, I need to transpose those vectors that are
I think the confusion relates to the fact that in R vectors are not 2D
arrays with one dimension set to 1.
So your 'simplevector' is not a vector, and your 'extractedvector3x1'
and 'extractedvector1x3' are in fact not 3x1 or 1x3, they are 3-element
vectors, which sometimes behave like 1x3 arrays,