search for: sumx

Displaying 12 results from an estimated 12 matches for "sumx".

Did you mean: sum
2011 Nov 07
1
Accessing ENVSXP and CLOSXP while processing parsed R code
...a question about accessing the closures and environments in R code. Here's the function taken and modified a little from "*Lexical Scope and Statistical Computing*" ===================================================================== f<-function(){ Rmlfun<-function(x){ sumx <- sum(x) n <- length(x) function(mu) n*log(mu)-mu*sumx } efun <-Rmlfun(1:10) y1 <- efun(3) print(y1) efun2 <- Rmlfun(20:30) y2 <- efun2(3) print(y2) } ===================================================================== Now assignment efun...
2003 Jun 06
2
little manipulation on data frame
Dear all, I have data like 3 coulmns and many rows. Each entry is less than 10. Example x y z 1 5 3 2 2 3 7 8 3 8 9 5 4 5 4 6 -------------------------- --------------------------- I have to sum entries of each coulmn (seperately) till it be 10. This i have to start for each row. And I want to assign no. of rows needed including that row too(it to be 10 or 10+, the moment it exceeds 10, i
2007 Apr 18
1
Gentleman and Ihaka , 2000 paper question
In their paper, "Lexical Scope and Statistical Computing", the authors ( Gentleman and Ihaka ) go to great length explaining why R's use of lexical scoping creates advantages when doing statistical computations. If anyone has or is familiar with this paper, could they provide the main program code for how the "newton" function would be called in their example on page 500
2009 Aug 30
2
aggregating irregular time series
...x 10:00:00.021 20 10:00:00.224 20 10:00:01.002 19 10:00:02:948 20 1) For each entry time, I'd like to get sum of x for the next 2 seconds (excluding itself). Using the above example, the output should be time sumx 10:00:00.021 39 10:00:00.224 19 10:00:01.442 20 10:00:02:948 0 2) For each i-th of x in the series, what's the first passage time to x[i]-1. I.e. the output should be time firstPassgeTime 10:00:00.021...
2011 Aug 11
2
sapply( ) a loop function
...row until the 40 consecutive rows after the sample have a d2p(variable) sum greater than 5. here is my loop code (it works fine when applied to a 241 observation data frame): n<-241 test<-0 while(test<5){ i<-sample(1:n-40,1) x<-my.data.frame[seq(from=i, to=i+40),] test<-sumx[,"d2p"],na.rm=TRUE) }; i ; test I need this loop to be applied to EACH DATA FRAME in a list of 360 data frames created by splitting my master data frame, d, by each fish number. (contains observations for 360 fish, each with 241 observations of 15 variables). split.df<-split(d,d$f...
2006 Oct 30
2
how to set debug breaks
Hi, I am new in R and have some frustrations as how to set debug breaks during emacs R debug. I use debug () as where or which function to debug. But during the debug, e.g., I have a for loop at the beginning of the function code and want the code execution to jump through that for loop and set a break after that. How to do that? Is there a web site detailing the syntax of the debugging of R?
2020 Apr 28
2
nut-scanner, SNMPv3, APC UPS not chatting
I'm trying to get SNMPv3 management working for an APC AP9617 card. It is newly refurbed, running sumx v3.7.2 and aos v3.7.3. In the SNMPv3 user profiles section I have (I don't care about the password leaking, it's temporary): User Name: nut Authentication Passphrase: NutScan at Password43LongerWord Privacy Passphrase: NutScan at Password43LongerWord Authentication protocol: MD5 (...
2023 Jul 14
1
frequent COMMBAD/COMMOK notifications (every 3-6 minutes)
...86_64 on CentOS Stream 8 talking with an APC Smart-UPS RT 5000 RM XL via a Network Management Card AP9619 (version A10). Up to today I would receive occasional COMMBAD messages, then 5 minutes later I'd see a COMMOK.Maybe 1 or two a day. Today I updated the firmware on the AP9619 from 3.7.2 to SUMX 3.9.3 and AOX 3.9.4, the most recent releases available for the card. Now I am seeing COMMBAD, then a minute later COMMOK, roughly every 3-6 minutes. I don't think it's a network problem: 1000 packets transmitted, 999 received, 0.1% packet loss, time 1000727ms rtt min/avg/max/mdev = 2.503...
2019 Dec 25
1
NUT not shutting down one of three UPSs (sometimes none of them shut down)
...00:26 [redacted] upsd[9800]: Client upsmon@[redacted] set FSD on UPS [ups3-1] The other two do shut down... most of the time. I've now observed two occasions in the past 6 months where none of them do so. All three UPSs report the same Application module and APC OS.: Application Module Name: sumx Version: v3.7.2 Date: 02/02/2010 Time: 19:08:16 APC OS (AOS) Name: aos Version: v3.7.3 Date: 02/02/2010 Time: 17:05:14 Yes, these are old UPSs and I've requested money to replace ups3-1. Of course, that won't help if NUT doesn't shut down any of them. Any advice would be appreciated....
2020 Apr 28
0
[EXTERNAL] nut-scanner, SNMPv3, APC UPS not chatting
...ke a moment and think before clicking any links or opening any attachments from this email. If suspicious, please forward to ishelpdesk at tripplite.com for review. ________________________________ I'm trying to get SNMPv3 management working for an APC AP9617 card. It is newly refurbed, running sumx v3.7.2 and aos v3.7.3. In the SNMPv3 user profiles section I have (I don't care about the password leaking, it's temporary): User Name: nut Authentication Passphrase: NutScan at Password43LongerWord Privacy Passphrase: NutScan at Password43LongerWord Authentication protocol: MD5 (...
2019 Oct 08
0
APC AP9630 SNMP AES
...cy Protocol. * OS name and version: Debian 10.1 * exact NUT version: 2.7.4 * NUT installation method: from debian package 2.7.4-8 * exact device name and related information * Model Number AP9630 * Hardware Revision 08 * Manufacture Date 09/18/2018 * Application Module: sumx v6.5.6 Apr 6 2018 16:00:53 * APC OS (AOS) v6.5.6 Mar 30 2018 16:51:08 * ups.conf [..] [foo] driver = snmp-ups # 'hostname' is resolvable, tcpdump shows initial snmp udp request and reply port = hostname snmp_version = v3 secLevel...
2009 Sep 01
1
Logistic Politomic Regression in R
...?x 10:00:00.021 ? ? ? ? ? ? ? ?20 10:00:00.224 ? ? ? ? ? ? ? ?20 10:00:01.002 ? ? ? ? ? ? ? ?19 10:00:02:948 ? ? ? ? ? ? ? ?20 1) For each entry time, I'd like to get sum of x for the next 2 seconds (excluding itself). Using the above example, the output should be time ? ? ? ? ? ? ? ? ? ? ? ?sumx 10:00:00.021 ? ? ? ? ? ? ? ?39 10:00:00.224 ? ? ? ? ? ? ? ?19 10:00:01.442 ? ? ? ? ? ? ? ?20 10:00:02:948 ? ? ? ? ? ? ? ? 0 2) For each i-th of x in the series, what's the first passage time to x[i]-1. I.e. the output should be time ? ? ? ? ? ? ? ? ? ? ? ? ? firstPassgeTime 10:00:00.021 ? ? ?...