transpose Questions

1

Solved

I am transposing a data.table and have chosen to use reshape2:::dcast, however I am plagued by a strange handling of the data.table... here is a toy data set that replicates the behavior: > lib...
Kelleykelli asked 18/5, 2015 at 14:25

3

Solved

This could be a weird question because Many would be wondering why to use such a complicated function like bsxfun for transposing while you have the .' operator. But, transposing isn't a problem f...
Greasy asked 1/5, 2015 at 6:59

1

I have some code to fetch a hard drive serial number from the WMI. SelectQuery selectQuery = new SelectQuery("Win32_PhysicalMedia"); ManagementObjectSearcher searcher = new ManagementObjectSearch...
Sarmentose asked 12/6, 2012 at 0:58

2

I am using POI XSSF API and I would like to transpose a sheet. how can I do that? Thanks.
Ungracious asked 3/5, 2011 at 22:7

2

Solved

I'm trying to transpose a map so that: [x: y, w: y, a: b] becomes [y: [x, w], b: a] (all variables are strings) Doing something like ["x": "y", "w": "y", "a": "b"].collectEntries { [it.value...
Parliamentarianism asked 2/8, 2013 at 17:10

1

Solved

The following code shows a problem of singularity of a matrix, since working in Pycharm I get raise LinAlgError("Singular matrix") numpy.linalg.linalg.LinAlgError: Singular matrix I guess the p...
Subdue asked 1/2, 2015 at 23:17

1

Solved

What I understood in the documentation of ‘np.einsum‘ is that a permutation string, would give a permutation of the axis in a vector. This is confirmed by the following experiment: >>> M ...
Divorcee asked 30/1, 2015 at 9:24

1

Solved

I have a 3 x 3 x 2 matrix, for example : M(:,:,1) = 1 2 3 4 5 6 7 8 9 M(:,:,2) = 10 11 12 13 14 15 16 17 18 and I would like to transpose each M(:,:,i), I mean I would like to have : M(:...
Hole asked 4/12, 2014 at 18:21

2

Solved

I am working on a data structure where I have an array of 16 uint64. They are laid out like this in memory (each below representing a single int64): A0 A1 A2 A3 B0 B1 B2 B3 C0 C1 C2 C3 D0 D1 D2 D3...
Sissy asked 19/11, 2014 at 9:32

3

Solved

I have an array: arr=[[1,2,3],[4,5],[6]], I have the following code: arr.transpose but it doesn't work,how to solve it? I am getting [[1,2,3],[4,5],[6]].transpose IndexError: element siz...
Sibby asked 24/9, 2014 at 12:12

1

Solved

Here's two ways to enter the command in Matlab. I don't think there's any difference between them. However, the result is really different. So I wonder what's I missed in this situation. Here's th...
Mana asked 7/5, 2014 at 5:14

2

Solved

I have three tables - the first contains questions with a unique ID QID | Question ------------------ 1 | Question 1 2 | Question 2 3 | Question 3 4 | Question 4 5 | Question 5 The second...
Gamophyllous asked 18/4, 2014 at 17:36

1

Solved

I have the following table, which gives multiple email addresses for each user. I need to flatten this out to columns on a user query to give me the "newest" 3 email addresses based on t...
Funds asked 14/4, 2014 at 12:35

2

Solved

In the code below, in line 4 I can transpose the dataframe, but in line 5, when I use to_csv, the new CSV file is created, it remains the original version and not the transposed one. What might ha...
Acadian asked 7/4, 2014 at 22:50

1

Solved

They seem to do the same thing. g = [{ a: "A" }, { b: "B" }] r = [{ x: "X" }, { y: "Y" }] g.zip(r) # => [[{:a=>"A"}, {:x=>"X"}], [{:b=>"B"}, {:y=>"Y"}]] [g,r].transpose # => [[{...
Huddleston asked 30/1, 2014 at 11:32

1

Solved

Are there formulas to convert data in a column to a matrix or to a row? And to convert from/to other combinations? What about an even more complex case: reshape a matrix of width W to width N*W? ...
Retiring asked 27/12, 2013 at 12:34

1

Solved

typedef int array[2][2]; void transpose(array dst, array src) { int i, j; for (j = 0; j < 2; j++) { for (i = 0; i < 2; i++) { dst[i][j] = src[j][i]; } } } src array starts at address...
Chellean asked 12/12, 2013 at 17:18

3

Solved

I have a 2d list like this: 1 2 3 4 5 6 and I want to make this: 1 4 2 5 3 6 I've tried to do a for loop and switch each value but I keep getting an index out of bound error. He...
Tael asked 29/11, 2013 at 5:44

2

Solved

Can data in Hive be transposed? As in, the rows become columns and columns are the rows? If there is no function straight up, is there a way to do it in a couple of steps? I have a table like this...
Dantzler asked 4/9, 2013 at 22:41

3

Solved

Been checking out other ways used to order array values vertically for use in a table but most of them were the equivalent of flipping your table 90 deg to the right. I've been trying to think of a...
Applicant asked 23/7, 2013 at 3:49

2

Solved

I have a range with 918 cells (A1:A918). Each cell has one string. I need vba code to surround each cell with quotes (" ") and add a comma (,) at the end. Then Transpose the list. I cannot add thos...
Resh asked 17/5, 2013 at 15:33

2

Solved

I keep beating myself over the head with this. I have an SSE-based algorithm for multiplying matrix A by matrix B. I need to also implement the operations for where A, B, or both are transposed. I ...
Exorcism asked 14/5, 2013 at 15:27

1

Solved

I have a tuple of tuples: t = ((1, 'one'), (2, 'two')) I need it in the following format: ((1, 2), ('one', 'two')) How can I convert it? I can do something like: digits = tuple ( digit for d...
Misleading asked 16/4, 2013 at 14:47

1

Solved

Suppose I'm representing a matrix foo of values using std::vector: int rows = 5; int cols = 10; auto foo = vector<vector<double>>(rows, vector<double>(cols)); Is there a cleve...
Single asked 3/4, 2013 at 3:30

2

Solved

Good day everybody! I'm currently trying to figure something out in excel before implementing in it VBScript. I have to mathematically transpose a few cells (10*10 or 5r*10c) in a matrice: -------...
Gametangium asked 14/2, 2013 at 10:45

© 2022 - 2024 — McMap. All rights reserved.