transpose

Powershell transpose rows into columns

亡梦爱人 提交于 2019-12-20 07:39:57
问题 Can someone help me to transpose row into colums. Need to transpose MachineName into columns. Endtime must be sorted. <#MachineName, TotalDataSizeBytes, ActualStartTime, EndTime, FinalJobStatus SERVER1, 322349304901, 28/02/2016 23:00:03, 29/03/2016 23:33:23, OK SERVER1, 322349304902, 26/02/2016 23:00:03, 27/03/2016 23:33:23, OK SERVER2, 322349304903, 28/02/2016 23:00:01, 29/03/2016 23:33:23, OK SERVER2, 322349304904, 26/02/2016 23:00:01, 27/03/2016 23:33:23, OK #> $graph = Import-Csv d:

Transpose static range in a loop

时光毁灭记忆、已成空白 提交于 2019-12-20 07:28:17
问题 I've tried to transpose a static range from column A on sheet 1 to rows on sheet 3 in a loop, to no avail. Here is the code I'm using so far: Sub Looptranspose() ' ' Looptranspose Macro ' ' Keyboard Shortcut: Ctrl+a Dim x As Integer Dim y As Integer x = 1 y = x + 18 Range("A" & CStr(x) & ":A" & CStr(y)).Select Selection.Copy Sheets("Sheet3").Select Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=True x = x + 19 End Sub How do I loop this until row

proc transpose with duplicate ID values

北战南征 提交于 2019-12-20 07:27:29
问题 I need help with proc transpose procedure in SAS. My code initially was: proc transpose data=temp out=temp1; by patid; var text; Id datanumber; run; This gave me error "The ID value " " occurs twice in the same BY group". I modified the code to this: proc sort data = temp; by patid text datanumber; run; data temp; set temp by patid text datanumber; if first.datanunmber then n = 0; n+1; run; proc sort data = temp; by patid text datanumber n; run; proc transpose out=temp1 (drop=n) let; by patid

How to reshape dataframe and transpose recurring columns to dataframe rows?

╄→гoц情女王★ 提交于 2019-12-20 05:12:08
问题 I have a dataframe that has recurring columns (the interval is 5). my dataframe at the moment So this is how it looks: I have 5 type of columns and they repeat time over time. The recurring columns have a suffix in their name, this can be removed/renamed as well, so that they would all match. What I would like to do is to transpose these recurring columns to rows, so that I would have only 5 columns in the end (Dates, PX_LAST, PX_HIGH, PX_VOLUME, Name). Then I would be able to group the

How to reshape dataframe and transpose recurring columns to dataframe rows?

六眼飞鱼酱① 提交于 2019-12-20 05:12:07
问题 I have a dataframe that has recurring columns (the interval is 5). my dataframe at the moment So this is how it looks: I have 5 type of columns and they repeat time over time. The recurring columns have a suffix in their name, this can be removed/renamed as well, so that they would all match. What I would like to do is to transpose these recurring columns to rows, so that I would have only 5 columns in the end (Dates, PX_LAST, PX_HIGH, PX_VOLUME, Name). Then I would be able to group the

How to transpose a table in SQLite?

≯℡__Kan透↙ 提交于 2019-12-20 03:28:17
问题 Hello so I have a table as such in SQlite: User | Group | Role John Smith | A | admin John Smith | B | user Jane Doe | A | user Jane Doe | B | limit Jane Doe | C | admin Jack Brown | A | admin, user I want to transpose the table so there is only one user per row.The column headers are "Group" . The values for "Group" would be values in the "Role" column from the first table. So, it would look as such when transformed: User | A | B | C John Smith | admin | user | Jane Doe | user | limit |

Transpose Function in R is not transposing

元气小坏坏 提交于 2019-12-20 02:15:57
问题 Trying to transpose a vector in R and then name it. I created a vector, v as follows: v<-c(1,2,3,4) But when I try to transpose as: t(v) It gives the output: t(v) [,1] [,2] [,3] [,4] [1,] 1 2 3 4 I know I can create a matrix or define a vector the other way, but I think the bigger issue is why transpose itself is not working. I do not have any packages installed or things like that. 回答1: #Create data v<-c(1,2,3,4) #In addition to the answers presented prior to mine, you could do this. t(t(v))

how to do Transpose in corresponding few columns in pig/hive

被刻印的时光 ゝ 提交于 2019-12-20 00:59:48
问题 I was wondering is it possible to do transposition corresponding few columns in pig/hive. as dealing with data i got below requirement id jan feb march 1 j1 f1 m1 2 j2 f2 m2 3 j3 f3 m3 where i need to transpose it against first column, so it would look like - id value month 1 j1 jan 1 f1 feb 1 m1 march 2 j2 jan 2 f2 feb 2 m2 march 3 j3 jan 3 f3 feb 3 m3 march I have tried this with java, but to get it into distributed mode is there any way to do it in pig/hive. appreciating your help in

How to use `image` to display a matrix in its conventional layout?

你说的曾经没有我的故事 提交于 2019-12-19 11:32:17
问题 I have a matrix defined as follows dataMatrix <- matrix(rnorm(400), nrow=40) then dataMatix is plotted to the screen using the following image(1:10, 1:40, t(dataMatrix)[, nrow(dataMatrix):1]) can someone explain how the third argument of the image function works ? I'm particularly confused by what happens inside [] . Thanks 回答1: There is nothing better than an illustrative example. Consider a 4 * 2 integer matrix of 8 elements: d <- matrix(1:8, 4) # [,1] [,2] #[1,] 1 5 #[2,] 2 6 #[3,] 3 7 #[4

How to use `image` to display a matrix in its conventional layout?

自作多情 提交于 2019-12-19 11:32:10
问题 I have a matrix defined as follows dataMatrix <- matrix(rnorm(400), nrow=40) then dataMatix is plotted to the screen using the following image(1:10, 1:40, t(dataMatrix)[, nrow(dataMatrix):1]) can someone explain how the third argument of the image function works ? I'm particularly confused by what happens inside [] . Thanks 回答1: There is nothing better than an illustrative example. Consider a 4 * 2 integer matrix of 8 elements: d <- matrix(1:8, 4) # [,1] [,2] #[1,] 1 5 #[2,] 2 6 #[3,] 3 7 #[4