Top "Transpose" questions

Transposition is an operation that applies to matrices wherein the rows and columns are swapped

Transposing a NumPy array

I use Python and NumPy and have some problems with "transpose": import numpy as np a = np.array([5,4]) print(a) …

python numpy transpose
Transpose list of lists

Let's take: l = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] The result I'm looking for is r = [[1, 4, 7], [2, 5, 8], [3, 6, 9]] and not r = [(1, 4, 7), (2, 5, 8), (3, 6, 9)] Much appreciated

python list transpose
Transpose/Unzip Function (inverse of zip)?

I have a list of 2-item tuples and I'd like to convert them to 2 lists where the first contains the …

python list matrix transpose
Excel VBA - Range.Copy transpose paste

I'm trying to something very simple, but I seem to be stuck. I am following the help menu for PasteSpecial …

excel transpose vba
An efficient way to transpose a file in Bash

I have a huge tab-separated file formatted like this X column1 column2 column3 row1 0 1 2 row2 3 4 5 row3 6 7 8 row4 9 10 11 I would like …

bash parsing unix transpose
Postgres - Transpose Rows to Columns

I have the following table, which gives multiple email addresses for each user. I need to flatten this out to …

sql database postgresql crosstab transpose
Converting rows into columns and columns into rows using R

I have a dataframe with unique row names and unique column names. I want to convert the rows into columns …

r rows transpose col
What is the fastest way to transpose a matrix in C++?

I have a matrix (relatively big) that I need to transpose. For example assume that my matrix is a b …

c++ algorithm matrix transpose
Transposing a 2D-array in JavaScript

I've got an array of arrays, something like: [ [1,2,3], [1,2,3], [1,2,3], ] I would like to transpose it to get the following array: [ [1,1,1], [2,2,2], [3,3,3], ] It's …

javascript arrays matrix transpose
Matrix expression causes error "requires numeric/complex matrix/vector arguments"?

ma=diag(3)+t(da)%*%da R Code above, error message as follows: Error in t(da) %*% da : requires numeric/complex …

r matrix matrix-multiplication transpose