Displaying 20 results from an estimated 11000 matches similar to: "Running mean in R?"
2002 Feb 22
0
FW: Cent. Mov. Ave
I recently wrote a function to compute functions over moving windows. (See
below). It varies from your request by using the last N points rather than
the last N/2 and next N/2 points, so you may have to modify it to get what
you want.
It will be in the next gregmisc package, which will go out in a month or so
when the publication review process here finishes. (I hate red tape!)
-Greg
2004 Jun 03
3
CALLERIDNUM not passed over?
When a user dials 999 he is always asked for the mailbox and has to enter his mailbox
number and password. As I understand this shouldn't happen because the CALLERIDNUM is
passed over to VoicemailMain. It's annoying to have to enter the number everytime ...
The voice mail configuration is read from MySQL. We are using the CVS version from a few
days ago.
Extract from extensions.conf:
2007 Oct 26
1
Linux grsec Guest on HVM Xen 3.1.1
Hello everybody
For network simulation purposes I am trying to run a Linux image with
a PAX enabled grsec kernel on a Gentoo xen-3.1.1 with HVM. While the
image boots flawlessly on real hardware the kernel does not really
like the fully virtualized Xen/Qemu environment. It does not succeed
to boot (for dmesg see attachment). I first tried with the grsec-
patched 2.6.14.6 sources but it
2004 May 31
1
Firefly / LibIAX2
Hi
Does anybody know how to build the LibIAX2 from Virbiage? It has some nice features when
using Firefly (Messaging, Status Indication).
The source can be downloaded here: http://www.virbiage.com/3rdparty/. It does not contain
any directions how to compile.
Any hints?
Thanks!
Reto
2006 Jan 13
1
SIP NOTIFY on REALTIME USERS/PEERS
Hi!
I've read in the asterisk docs (AstARA.html) that realtime users/peers can't
be notified (MWI with SIP NOTIFY) when they have new voicemail messages,
because their object are not persistent in memory?!
But that's what we really need!!!
Is their any work in progress to get these things working?
Or are their any known workarounds?
I'm using asterisk version 1.2.1 with OBDC
2006 Jan 17
2
auto load SIP peers on startup
Hi all,
we use OpenSER together with Asterisk.
All SIP users registers with OpenSER and asterisk is doing the voicemail
thing.
We use the Asterisk RealtimeArchitecture for voicemail users and SIP peers.
The database table for the sip peers is a view from the OpenSER subscriber
table.
The MWI for a user will only work, if the user object (sip peer) is loaded
into memory and visible with the CLI
2002 Jul 23
1
function running in package gregmisc
Hello,
I've got a problem using the function "running" in package gregmisc
For example:
test<-c(1,2,3,4,5)
running(test,fun=var,width=3) gives
1:1 1:2 1:3 2:4 3:5
NA NA 2 3 4
which is wrong because
var(test[1:3])
[1] 1
Where am I wrong?
Thanks
Xavier
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2004 Jun 18
1
X100P in Switzerland
Hi
Does anybody if the X100P works in Switzerland? We can't get a line to PSTN.
When I run zttool it shows me always a red alert. I can make and receive calls with an
anlog phone plugged in the phone connector.
I've compiled and configured the card according to the wiki. Everything seemed to be ok.
Is there a way to debug this?
Regards
Reto
2006 Jan 18
1
festival-script.pl... howto change language?
excuse for to find a desperate solution... but i'm boried to spent hours...
;)
not in asterisk !!! ;)
i use the festial-script.pl of Donny Kavanagh... but i want to change the
language that festival uses, depending on a variable for the callerid.
English/Spanish
How i can tell the script the correct voice that festival needs to use??
like --language spanish --language english ...in normal
2007 Jun 14
4
question about formula for lm
Dear all;
Is there any way to make this to work?:
.x<-rnorm(50,10,3)
.y<-.x+rnorm(50,0,1)
X<-data.frame(.x,.y)
colnames(X)<-c("Xvar","Yvar")
Ytext<-"Yvar"
lm(Ytext~Xvar,data=X) # doesn't run
lm(Yvar~Xvar,data=X) # does run
The main idea is to use Ytext as input in a function, so you just type
"Yvar" and the model should fit....
2012 May 22
2
[LLVMdev] Match operands
I'm trying to implement the standalone assembler for mips and I have encountered a problem in instruction operands matcher.
In mips instruction set there are math instructions with two format flags in the mnemonic, one for source and one for destination register.
For example ceil.w.s means both source and destination are F32 registers while ceil.l.d means both source and destination are F64
2009 Apr 21
6
Sampling in R
[This email is either empty or too large to be displayed at this time]
2005 Jul 05
1
by (tapply) and for loop differences
I am getting a difference in results when running some analysis using by and
tapply compare to using a for loop. I've tried searching the web but had no
luck with the keywords I used.
I've attached a simple example below to illustrates my problem. I get a
difference in the mean of yvar, diff and the p-value using tapply & by
compared to a for loop. I cannot see what I am doing wrong.
2019 May 25
3
Increasing number of observations worsen the regression model
I have the following code:
```
rm(list=ls())
N = 30000
xvar <- runif(N, -10, 10)
e <- rnorm(N, mean=0, sd=1)
yvar <- 1 + 2*xvar + e
plot(xvar,yvar)
lmMod <- lm(yvar~xvar)
print(summary(lmMod))
domain <- seq(min(xvar), max(xvar))??? # define a vector of x values to
feed into model
lines(domain, predict(lmMod, newdata = data.frame(xvar=domain)))??? #
add regression line, using
2011 Feb 25
1
speed up process
Dear users,
I have a double for loop that does exactly what I want, but is quite
slow. It is not so much with this simplified example, but IRL it is slow.
Can anyone help me improve it?
The data and code for foo_reg() are available at the end of the email; I
preferred going directly into the problematic part.
Here is the code (I tried to simplify it but I cannot do it too much or
else it
2012 Aug 11
1
using eval to handle column names in function calling scatterplot graph function
I am running R version 2.15.1 in Windows XP
I am having problems with a function I'm trying to create to:
1. subset a data.frame based on function arguments (colname & parmname)
2. rename the PARMVALUE column in the data.frame based on function
argument (xvar)
3. generate charts
plotvar <- function(parentdf,colname, parmname,xvar,yvar ){
subdf <-
2011 Apr 01
3
programming: telling a function where to look for the entered variables
Hi there,
Could someone help me with the following programming problem..?
I have written a function that works for my intended purpose, but it
is quite closely tied to a particular dataframe and the names of the
variables in this dataframe. However, I'd like to use the same
function for different dataframes and variables. My problem is that
I'm not quite sure how to tell my function in
2003 Jan 22
1
something wrong when using pspline in clogit?
Dear R users:
I am not entirely convinced that clogit gives me the correct result when I
use pspline() and maybe you could help correct me here.
When I add a constant to my covariate I expect only the intercept to change,
but not the coefficients. This is true (in clogit) when I assume a linear in
the logit model, but the same does not happen when I use pspline().
If I did something similar
2010 Feb 03
3
[LLVMdev] Interpreter with multiple modules.
Hi everybody,
I'm currently working with LLVM (v 2.6) and I try to interpret LLVM bitcode
using the c API. Here is my problem : I have two LLVMModuleRef, M1 and M2,
M1 contains the function "funct()" and M2 contains a main function which
call "funct()" (M2 declares "funct()" too but it doesn't define it). If I
try to run the main function, I got the error
2007 Nov 15
1
Writing a helper function that takes in the dataframe and variable names and then does a subset and plot
Hi,
I have a large dataframe than I'm writing functions to explore, and to
reduce cut and paste I'm trying to write a function that does a subset
and then a plot.
Firstly, I can write a wrapper around a plot:
plotwithfits <- function(formula, data, xylabels=c('','')) {
xyplot(formula, data, panel =
function(x,y, ...) {
panel.xyplot(x,y,