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
 Returned Range of Sum Function

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
CJKS Posted - 05/30/2006 : 1:43:12 PM
Hello,

In the help file example we are told that,

<quote>

sum(DATA1_A);

If DATA1_A contains 4 values (1, 2, 3, 4), this script returns the range (1, 3, 6, 10) where the second value in the returned range (3) is the sum of the first two values in DATA1_A, etc.

</quote>

While the following object properties: sum.mean, sum.total, sum.min, sum.max, sum.sd, sum.n. all work great. I am trying to access the entire returned range of the sum(dataset) function (ie. (1,3,6,10) from the above example). Is there a way to output this range into a new column?
2   L A T E S T    R E P L I E S    (Newest First)
CJKS Posted - 05/30/2006 : 3:04:47 PM
Thanks Mike. Very simple indeed!
Mike Buess Posted - 05/30/2006 : 1:53:53 PM
If the worksheet is active it's as simple as this...
col(B)=sum(col(A));

Otherwise...
Data1_B=sum(Data1_A);

Mike Buess
Origin WebRing Member

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