The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 how to sort/avg by x value

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
cmcc Posted - 03/31/2016 : 3:07:53 PM
Origin Ver. and Service Release (Select Help-->About Origin): 8.5
Operating System: win7

I have a long series of measurements that looks like this
col(a) col(b)
0 0.4
0 0.38
0 0.42
1 0.1
1 0.08
1 0.09
2 -0.2
2 -0.19
2 -0.17

I want to separate each set of y-values with an identical x value into its own column, so that I can run "descriptive statistics - columns" on each value to get the mean and standard deviation, etc.
Is there a fast or elegant way to do this? perhaps using some kind of Sort or Transpose function? I have been manually copy-pasting into new columns but this is a pain if I have 200 unique sets x values, each with unique y values....
Thanks for your help or tips!
3   L A T E S T    R E P L I E S    (Newest First)
meili_yang Posted - 03/31/2016 : 3:42:21 PM
You are welcome. Good to know it works.

Meili
OriginLab Tech Support
cmcc Posted - 03/31/2016 : 3:31:29 PM
perfect!
I should have learned this a long time ago.
thanks so much!
meili_yang Posted - 03/31/2016 : 3:23:16 PM
Hi cmcc,

You can just highlight Col(b), and from menu Statistics: Descriptive Statistics: Statistics on Column to open the dialog.

In the dialog under Input Data, there is a Group box. You can click to select Col(A) as group, or more than one columns as group. Then the result will return mean and standard deviation or any selected quantities for each element in the group column, or combination of elements across group columns.




The dialog is cropped in 2016 which is a different layout than 8.5, but you can still see the group option.

I think this is what you like to do.

Meili
OriginLab Tech Support

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000