similar to: rolling sum (like in Rmetrics package)

Displaying 20 results from an estimated 1000 matches similar to: "rolling sum (like in Rmetrics package)"

2008 Feb 28
3
datetime on x-axis of plot
Hello, I'm reading Time Series Analysis and its Applilcations with R Examples and I have a question... I notice that in the book there are timeseries plots but without the x-axis being labeled with dates. They are just numbers 1,...50,...100, etc. How do I get the date to show up on the x-axis? Here is my dateframe: > head(myData, 5) 1 2008-01-30 08:30 7.00 2
2010 Dec 23
5
Writing a single output file
Dear R helpers! Let me first wish all of you "Merry Christmas and Very Happy New year 2011" "Christmas day is a day of Joy and Charity, May God make you rich in both" - Phillips Brooks ## ---------------------------------------------------------------------------------------------------------------------------- I have a process which generates number of outputs. The R code
2008 Mar 07
3
Error
Hello! I need some help, because I don't know how this error means: Error: variables ?Output1?, ?Output2?, ?Output3?, ?Output4?, ?Output5? were specified with different types from the fit Execution halted Can you help me? Thank You
2007 Jun 19
1
A question about plots and lists in functions
R-helpers: I tried googling and couldn't find anything. I have a function I am sourcing into R that does some calculations to generate a simulated dataset. I currently have a a list set up to store the outputs from the function and a plot of one of them (a set of ordered pairs) like this: foo<-function(x,y,z){ ## do some work here ## list(x=x,y=y,z=z,output1=output1,output2=output2,
2010 Nov 15
3
merge two dataset and replace missing by 0
Hi r users, I have two data sets (X1, X2). For example, time1<-c( 0, 8, 15, 22, 43, 64, 85, 106, 127, 148, 169, 190 ,211 ) outpue1<-c(171 ,164 ,150 ,141 ,109 , 73 , 47 ,26 ,15 ,12 ,6 ,2 ,1 ) X1<-cbind(time1,outpue1) time2<-c( 0 ,8 ,15 , 22 ,43 , 64 ,85 ,106 ,148) output2<-c( 5 ,5 ,4 ,5 ,5 ,4 ,1 ,2 , 1 ) X2<-cbind(time2,output2) I want to
2012 Oct 11
2
Repeating a series of commands
I'm trying to figure out how to repeat a series of commands in R and have the outputs added to a dataframe after each iteration. My code starts this way... a<-read.csv("File1.csv") b<-read.csv("File2.csv")
2009 Aug 10
3
how use cat() function?
i  want to print in the console and to have an excel file like this no_GWP                NbOfPolicyClass1[0-1000]     NbOfPolicyClass2[1000-3000]        NbOfPolicyClass3[> 3000] No_GWPMax=8    NbpolicyClass1=5                   NbpolicyClass2=4                            NbpolicyClass3 =3              i have do it like this:!!! data1 <-
2004 Jan 07
4
Ogg checksum thingie needed
I need some sort of utility to calculate a checksum of an Ogg file. Two differently encoded Ogg:s should give different checksums, but the same file with different tags should give the same result. (The serial number doesn't work here, obviously. I need something that is changed if a bit of the file is lost.) -- Björn Lindström <bkhl@elektrubadur.se> http://bkhl.elektrubadur.se/
2005 Feb 08
2
batch jobs question
Hi,there I'm doing some R batch jobs in Unix. Something like R <prog1> output1 --save & R <prog2> output2 --save & prog1 and prog2 are running at the same time and they are essentially same except it contains different parameter values. I was wondering if two processes will affect each other? Hopefully they are two independent jobs. It's a beginner's question
2009 May 19
4
nlrwr package. Error when fitting the optimal Box-Cox transformation with two variables
Dear all: I'm trying to fit the optimal Box-Cox transformation related to nls (see the code below) for the demand of money data in Green (3th Edition) but in the last step R gives the next error message. Error en `[.data.frame`(eval(object$data), , as.character(formula(object)[[2]])[2]) : undefined columns selected. ?Any idea to solve the problem? Thanks in advance,
2009 Sep 02
2
Average over data sets
Hello, I have a number of files output1.dat, output2.dat, ... , output20.dat, each of which monitors several variables over a fixed number of timepoints. From this I want to create a data frame which contains the mean value between all files, for each timepoint and each variable. The code below works, but it seems like I should be able to do the second part without a for loop. I played
2008 Jul 21
1
Howto Restart A Function with Try-Error Catch
Hi all, I have a function - let's call it "myfunction". This function is based on some random number generator. Now, once in a while the function will break/crash depending on the random number it generate inside the function. To avoid the problem, what I intend to do is the following: 1. Catch the try-error using class. 2. Redo the function if it returns "try-error" 3.
2010 Mar 03
1
List of zoo dataframes
Hello, I have various datasets of zoo time series (merged into single frames via the "merge" command) such as date var0 var1 var2 var3 08/07/1996 652.54 0.223922 0.515819 0.502638 08/08/1996 662.59 0.997841 0.000383 0.999806 06/09/1996 655.68 0.901685 0.569763 0.866333 08/10/1996 700.64 0.268855 0.244701 0.329285 08/11/1996 730.82 0.438407 0.501427 0.461374
2004 Jun 13
1
Rmetrics - New Built 190.10055
*June 13, 2004 Rmetrics - new Built 190.10055 Rmetrics is an environment and a collection of functions for teaching financial engineering and computational finance *The new built should now run out of the box under Windows, Linux, and Mac OSX. In addition new functionality has been added, and some fixes has been done. New functions and example files have been added. Please inspect the FAQ and
2007 Jun 27
1
Another loop avoidance question.
Hi I want to sum over one of the dimensions of a n x k1 x k2 array in which each column is the product of the corresponding columns from two matrices with dimensions n x k1 and n x k2. I can see two approaches: a loop on k1 and a loop on k2. But I cannot figure a solution that avoids the loop? Is it possible? (I don't refer to apply or lapply etc either as they are just hidden loops so,
2004 May 18
2
Windows versus Unix packages in CRAN (Was Re: Rmetrics)
> Rmetrics - New Version is available for R 1.9 !! > in R-binary and R-source form from the site "http://www.rmetrics.org", > and install the binary "zip" files in the usual way via the menu I'm confused - does the fact that you are only distributing ".zip" files means that (shudder) I need Microsoft Windows in order to run this? (I hunted on the
2011 Jun 29
3
[LLVMdev] specint2000 as external tests
Hi Duncan, Do you have sources also in the $LLVM_SRC_ROOT/projects/test-suite/External/SPEC/CINT2000/164.gzip? The following is content of above directory in my case. I have copied the CINT2000 sources in this directory manually. $ls -1 $LLVM_SRC_ROOT/projects/test-suite/External/SPEC/CINT2000/164.gzip 164.gzip.reference_output 164.gzip.reference_output.small compile_info compile_parms
2011 Jun 29
2
[LLVMdev] specint2000 as external tests
Hi All, I am trying to configure llvm so with test-suite enabled. I have downloaded the test-suite. Spec 2000 benchmarks sources are plugged in speccpu2000 at $LLVM_SRC_ROOT/projects/test-suite-externals/speccpu2000/benchspec e.g.: 164.gzip dir is $LLVM_SRC_ROOT/projects/test-suite-externals/speccpu2000/benchspec/164.gzip My configure command is: ../configure --disable-optimized
2011 Jun 29
0
[LLVMdev] specint2000 as external tests
Hi Daya, > checking for spec2000 benchmark sources... no, not found in > $LLVM_SRC_ROOT/projects/test-suite-externals/speccpu2000/benchspec I have 164.gzip at $LLVM_SRC_ROOT/projects/test-suite/External/SPEC/CINT2000/164.gzip and it seems to work. Ciao, Duncan.
2005 Oct 09
1
Rmetrics fMultivar how to?
Hi Everybody, I am a total beginner at this so please bear with me. I downloaded by hand the file WIG20.txt (Warsaw Stock Exchange Index of 20 most important stocks). The format is this: Name,Date,Open,High,Low,Close,Volume WIG20,19940414,1000.00,1000.00,1000.00,1000.00,71600.000 WIG20,19940418,1050.50,1050.50,1050.50,1050.50,99950.000 WIG20,19940419,1124.90,1124.90,1124.90,1124.90,138059.000