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
 LabTalk: colstats output to same sheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

RandomOUser

5 Posts

Posted - 07/10/2020 :  07:52:04 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2020 (64-bit) SR1 .7.0.188 (Academic)
Operating System: Windows 10

Dear community,

I am looking for a way to tell the X-Function colstats in a LabTalk-Script (.ogs) to write its output into new columns of the same sheet instead of a new sheet.

This does the statistics but creates a new sheet for the output:
colstats 3:12

This does not work (since it appears there is no output / report data object for colstats):
colstats 3:12 rd:=[<input>]<input>!<new>;

Thanks for your help!

RandomOUser

5 Posts

Posted - 07/10/2020 :  08:13:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I just found out how to do this. For future reference / anyone interested in this:

Basically, you can specify the full path for each output argument like so:

colstats 3:12 min:=[<input>]<input>!<new> max:=[<input>]<input>!<new>;

The default output (such as average, n, median etc.) will in this case still be written to a new sheet. So each output attribute has to be manually overwritten. The full command then looks like this:
colstats 3:12 col:=[<input>]<input>!<new> mean:=[<input>]<input>!<new> sd:=[<input>]<input>!<new> n:=[<input>]<input>!<new> median:=[<input>]<input>!<new> min:=[<input>]<input>!<new> max:=[<input>]<input>!<new>;

This seems rather unnecessarily complicated. So in case anybody has a better solution, I'd still be interested.

Edited by - RandomOUser on 07/10/2020 08:17:58 AM
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