Top "Transpose" questions

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

Transposing in dplyr

I have the following data.frame df = structure(list(HEADER = c("HOME_TRPM", "AWAY_TRPM", "HOME_TEAM","AWAY_TEAM"), price = …

r dplyr transpose
How to transpose a dataset in a csv file?

For example, i would like to transform: Name,Time,Score Dan,68,20 Suse,42,40 Tracy,50,38 Into: Name,Dan,Suse,Tracy Time,68,42,50 Score,20,40,38 …

python csv transpose
how to transpose a matrix in r if the usual `t( )` doesn't work?

I have a matrix I am trying to transpose in R but the t() function does not return the right …

r matrix transpose
Need to convert columns to rows in R

I have data that looks like a b c 1 5 4 3 6 1 2 5 3 I want to convert it to convert all the columns to …

r reshape transpose
Finding dot product in r

I am trying to find the dot product of two matrices in R. In the q matrix, which must be …

r matrix transpose dot-product
How to transpose a dataframe in tidyverse?

Using basic R, I can transpose a dataframe, say mtcars, which has all columns of the same class: as.data.…

r dataframe transpose tidyr tidyverse
Numpy transpose of 1D array not giving expected result

I am trying a very basic example in Python scipy module for transpose() method but it's not giving expected result. …

python numpy scipy transpose
Pivot multiple columns based on one column in SQL Server

I have the following source and destination tables in SQL Server 2008R2. How can I do pivot(s) in TSQL …

sql-server tsql pivot transpose
Transpose of a vector using numpy

I am having an issue with Ipython - Numpy. I want to do the following operation: x^T.x with …

numpy ipython transpose
Flip (transpose) the rows and columns of a 2D array without changing the number of columns

Normally, I'd be asking how to turn a 4-rowed, 3-columned array like this: 1 2 3 4 5 6 7 8 9 10 11 12 Into a 3-rowed, 4-columned array like: (I …

php arrays multidimensional-array transpose