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 for Programming
 LabTalk Forum
 Rowstats and ImpASC

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
gstiago Posted - 05/15/2016 : 10:24:12 AM
Origin Ver. and Service Release (Select Help-->About Origin): 8.1 SR1
Operating System:Windows 7

Hello friends, I need a Help with rowstats and ImpASC.
I am using a impasc and findfiles, for get some specific files, all works good, but now I need get the mean and std of data and I use that:

rowstats irng:=( COL(2),COL(4),COL(6)) mean:= col(7) sd:=col(8);
(three files with two columns in this case)

This works nice, but the numbers of files changes. I know how to get this numbers by: int n = fns.GetNumTokens(CRLF).

Is there any way to automatically change irng for irng:=( COL(2),COL(4),COL(6)) for

irng:=( COL(2),COL(4),COL(6),COL(8))

if the files number changed the three for four..

My best Regards.



T. G. Santos
3   L A T E S T    R E P L I E S    (Newest First)
phancaopatrick149 Posted - 05/23/2016 : 09:29:51 AM
We invite you to explore our site to learn more about who we are, what we do and how we can assist you and your loved ones. You will find a wealth of valuable information here, including videos and blog posts about topics that, over the years, many of our clients have asked about at our initial meetings.

http://assetprotectioncenter.com/

[url=http://assetprotectioncenter.com/]asset protection attorney california[/url]
gstiago Posted - 05/15/2016 : 3:04:51 PM
Dear Easwar,

Well done, this works nice.

Thank you.

My best regards.




T. G. Santos
easwar Posted - 05/15/2016 : 1:47:56 PM
Hi Santos,

You can use a loop to select every other column. Then the rowstats XF will work on the selection:


// Select every other col starting from col 2
for(ii = 2 ; ii <= wks.ncols ; ii+=2)
{
  wks.colSel(ii,1);
}
// Stats will work on selected cols
// Mean and sd are default outputs, so do not need to specify
rowstats;
// Optional - deselect the cols
wo -s;


Easwar
OrignLab


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