Displaying 20 results from an estimated 3000 matches similar to: "Partial sum of a vector"
2009 Apr 05
2
Problem with Dynamo-Package
Good day,
I am facing a problem when I am installing the dynamo-package and loading it. After I installed the package, I received the following warning message:
"In file.create(f.tg) :
cannot create file 'C:\PROGRA~2\R\R-28~1.1/doc/html/packages.html', reason 'Permission denied'"
and when I load the package, an error message pops up saying that "the application
2009 Mar 04
2
Multivariate GARCH Package
Good day everyone,
I tried to find a multivariate GARCH package and failed to find one. Although when I searched R I found the following link which describes the package:
http://www.r-project.org/user-2006/Slides/Schmidbauer+Tunalioglu.pdf
can any one help me with this issue.
Thank you in advance
[[alternative HTML version deleted]]
2012 Aug 23
1
Extracting data from dataframe with tied rows
Hi R help,
I'm a fairly experienced R user but this manipulation has me stumped, please
help:
DATA
id<-rep(LETTERS[1:5],20)
distance<-rnorm(1:100, mean = 100)
bearing<-sample(1:360,100,replace=T)
month<-sample(1:12,100,replace=T)
I have a dataset with records of individuals (id) , each with a distance
(distance) & direction (bearing) recorded for each month (month).
I want
2008 Feb 13
4
rolling sum (like in Rmetrics package)
Hello, I'm new to R and would like to know how to create a vector of "rolling
sums". (I have seen the Rmetrics package and the rollMean function and I
would like to do the same thing except Sum instead of Mean.) I imagine
someone has done this, I just can't find it anywhere.
Example:
x <- somevector #where x is 'n' entries long
#what I would like to do is:
x1
2009 Apr 06
1
Problem with Extracting Fitted Values from fGarch package
Good day everyone,
I fitted a GARCH model to a time series and R estimated the model and provide me with the estimates. However, when I tried to extract the fitted values from the estimated model I got the following error message:
"Error in .local(object, ...) : object "fit" not found"
I used the following to extract the fitted values
fitted_TASI <- fitted(garchFit(~
2006 Jul 20
3
How do I modify an exported function in a locked environment?
Running R.app on Mac OS X 10.4
> version
_
platform powerpc-apple-darwin8.6.0
arch powerpc
os darwin8.6.0
system powerpc, darwin8.6.0
status
major 2
minor 3.1
year 2006
2006 Jul 20
3
How do I modify an exported function in a locked environment?
Running R.app on Mac OS X 10.4
> version
_
platform powerpc-apple-darwin8.6.0
arch powerpc
os darwin8.6.0
system powerpc, darwin8.6.0
status
major 2
minor 3.1
year 2006
2010 Sep 17
1
Data Cube in R from CSV
Hello
I am at the moment trying to get to grips with a data cube in R, and I am
increasingly wondering whether I am actually making things unnecessarily
difficult for myself.
The idea is that I have a data cube with three dimensions (so a 3D matrix):
companies, figures, and years.
So along the z axis the vectors are essentially time series, the horizontals
are all about a single figure and the
2008 Jul 09
2
rollmean()
Hello,
I am trying to calculate a 31 day running mean in some temperature data
along ROWS. Rollmean() works great along columns, but how do I perform this
same action on my rows?
The data is a matrix of 365 columns (days of the year) by 5,000 rows
(lat/long coordinates).
I would like to perform a 31 day running mean along the 365 days.
I am new to R so any help would be greatly appreciated!
2008 Jan 07
5
moving or running average
Hi all R users,
Can anyone please let me know how to do the moving average with R?
With regards,
Abu
_________________________________________________________________
Free games, great prizes - get gaming at Gamesbox.
2010 Jan 02
1
Question on Reduce + rollmean
Hello useRs,
I'd like to perform a moving average on the dataset, xx. I've tried
combining the functions Reduce and rollmean but it didn't work.
> r <- function(n) rollmean(n, 2) # where 2 = averaging interval
> output < - Reduce("r", x)
Error in f(init, x[[i]]) : unused argument(s) (x[[i]])
Is there anything wrong with the code in the first place?
where
2012 Mar 03
4
Sliding a Window in R
Dear all,
I am having a vector of around 300.000 elements and I Want to slide fast a window from the first element until the last-Windowsize
what I have so far is the following for statement:
for (i in 1:(length(data[,1]) - windowSize)) {
out[i] <- mean(data[i:(i + windowSize - 1), ])
elements[i]<-length(i:(i + windowSize - 1))
}
but this of course takes ages to
2009 Dec 10
1
Moving Averages in ggplot2
Hello all,
Have some time series data stored in a data.frame, and am plotting it with
ggplot2 (which is totally awesome). I have explored the documentation and
mailing list archives, and I can't see any way to plot a 'smoother' that is
just the K-step moving average.
For example, imagine I had a data.frame called 'sleep' with 'date' as the
date (from as.Date()) and
2010 Jul 17
5
Help with a problem
Hello R users,
I am a researcher at the University of Michigan looking for a solution to an R problem. I have loaded my data in from a mysql database and it looks like this
> data
ds c1 c2
1 2010-04-03 100 0
2 2010-04-30 11141 15
3 2010-05-01 3 16
4 2010-05-02 7615 14
5 2010-05-03 6910 17
6 2010-05-04
2008 Jul 21
4
how to speed up this for loop?
Could anyone tell me a better way to achieve the output of this for loop? It
seems to run quite slow. I'm sure there must be a more consise way to sum
from FN to LN, excluding positive values, for each row.
#sum between FN and LN, excluding positive values
for(i in 1:R){
for(j in FN[i]:LN[i]){
if(Temp[i,j]<0)
sum[i] <- sum[i] + sum(Temp[i,j])}}
Cheers,
R
--
View this message in
2010 Aug 20
3
rollmean help (or similar function)
I am working on a simple pilot project comparing the capability of SQL,
SAS and R to perform a rolling mean per the following instructions. I
have completed the SQL and SAS analysis, so now it's R's turn.
Calculate mean values of x (x=count) for each date in the dataset where
mean = the average count of days [t-9] through day [t-3] for each
date/illness combination.
Dataset aggpilot
2005 Jul 06
4
converting windows .wav to .gsm
HI ALL;
I have problem converting a windows .wav file to .gsm format by Sox.
Could anyone help.
Cheers,
Mohammad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050706/3408bfd5/attachment.htm
2014 Jan 17
2
[LLVMdev] [icFuzz] Help needed with analyzing randomly generated tests that fail on clang 3.4 trunk
Hi Hal,
Just submitted 27 failing tests on clang version 3.5, trunk 199158.
http://llvm.org/bugs/show_bug.cgi?id=16431
I expect that these failures correspond to 2+ unique bugs.
Cheers,
-moh
-----Original Message-----
From: Hal Finkel [mailto:hfinkel at anl.gov]
Sent: Thursday, January 09, 2014 6:01 AM
To: Haghighat, Mohammad R
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] [icFuzz] Help
2011 Dec 29
21
Puppetserver error
Hello everyone,
I am new to puppet. I have installed on redhat Enterprise 5and seems
to be working fine. Couple days ago I was testing some permissions on /
etc folder and applied 600 /etc and sub folders. Although I have
reverted the permission but I am having issues on puppetmaster.
Currently I have these permission on etc 755 and puppet folder:
my /etc folder is 755 and puppet folder with tese
2010 Jan 04
3
Extract vector elements until cumsum <= x
Hi All,
I have a vector n, and for each n[i] I want to extract n[i], n[i+1],
n[i+2]..., until the cumulative sum of n[i] and subsequent elements exceeds
a CheckValue, whereupon I move to the next index and repeat.
I am trying to find a Vectorized approach, and have seen similar posts where
filter{stat} and rollmean{zoo} were suggested, but, I haven't been able to
figure a way to use them