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
 Data envelope - max values

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
andreas1 Posted - 07/11/2001 : 08:21:39 AM
Hi,

I have multiple columns of data and would like to create a new column containing the maximum value for each row.

How can this be done
a) using standard functions
b) using a script

Thanks

Andreas
1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 07/11/2001 : 11:53:00 AM
You don't mention a version so I will only cover 5.x and 6.x which differ in that statistics on rows are reported in the same worksheet in 5.x and a new worksheet in 6.x. Highlight the columns you want included in the calculation and then run this script:



if(system.version<6.0211) {

run.section(WKS,StatRow);

wo -a 1;

wks.col$(wks.ncols).name$=max;

copy _max %H_max;

delete %H_mean;

delete %H_sd;

delete %H_se;

} else {

%M=%H;

run.section(WKS,StatRow);

%N=%H;

win -a %M;

wo -a 1;

wks.col$(wks.ncols).name$=max;

copy %N_max %M_max;

win -c %N;

};





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