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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Data envelope - max values
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

andreas1

Germany
12 Posts

Posted - 07/11/2001 :  08:21:39 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

greg

USA
1380 Posts

Posted - 07/11/2001 :  11:53:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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;

};




Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000