similar to: exit status help

Displaying 20 results from an estimated 70 matches similar to: "exit status help"

2012 Jan 11
0
Error in charToDate(x)
Dear all, I have a problem while working with hourly data of fx rates. I've read from a csv file, the following way: csv-file like: Date,Open,High,Low,Close,Volume 2011-08-11 03:00:00,1.41758,1.42205,1.41625,1.42174,8974 ... 2011-08-12 04:00:00,1.42175,1.42413,1.42067,1.42172,7229 ... 2011-12-30 05:00:00,1.42173,1.42341,1.42062,1.42171,6703 ... raw<-
2011 May 05
1
quantmod's addTA plotting functions
Hi, I'm having trouble with quantmod's addTA plotting functions. They seem to work fine when run from the command line. But when run inside a function, only the last one run is visible. Here's an example. test.addTA <- function(from = "2010-06-01") { getSymbols("^GSPC", from = from) GSPC.close <- GSPC[,"GSPC.Close"] GSPC.EMA.3
2000 Feb 28
1
Parser Bug Somewhere.... (PR#460)
Full_Name: John P Cavanaugh Version: .99 OS: linux Submission from: (NULL) (24.116.10.99) dataset$ema12 <- EMA (dataset$Close,12) dataset$ema26 <- EMA (dataset$Close,26) dataset$MACD_fast <- dataset$ema26 - dataset$ema12 dataset$MACD_slow <- EMA(dataset$MACD_fast,9) dataset$MACD_hist <- dataset$MACD_fast - dataset$MACD_slow # This line doesnt work!!! But... if I does work if I
2009 Jun 19
1
(FULL) Need help to optimize a piece of code involving zoo objects
(Sorry, sent the message before I finished it) Hello, everyone I have a long script that uses zoo objects. In this script I used simple moving averages and these I can very efficiently calculate with filter() functions. Now, I have to use special "exponential" moving averages, and the only way I could write the code was with a for-loop, which makes everything extremely slow. I don't
2011 May 07
2
Convenience-at-the-expense-of-clarity (was: quantmod's addTA plotting functions)
Thanks, Writing plot(addTA()) worked fine. I find myself with such mixed feelings about R. After finding that addTA worked fine at the command line but not in a function, I puzzled for a long time about what kind of virtual machine structure could possibly account for that. I couldn't think of any. It turns out that this isn't due to an R virtual machine structure. The reason addTA adds
2012 Apr 05
1
is parallel computing possible for 'rollapplyr' job?
  Hi,   The code below does exactly what I want in sequential mode. But, it is slow and I want to run it in parallel mode. I examined some windows version packages (parallel, snow, snowfall,..) but could not solve my specific problem. As far as I understood, either I have to write a new function like sfRollapplyr or I have to change my code in a way that it utilizes lapply, or sapply instead of
2012 May 21
1
Need help in doing EMA(Exponential Mean Average).
Can somebody help me in finding package/Example in R which could do EMA(Exponential Mean Average). I installed "TTR" package but the 'EMA" function which I was trying to use is giving the following error. Error: Could not find function "EMA" Thanks & Regards, Thomas [[alternative HTML version deleted]]
2009 Jun 19
1
Need help to optimize a piece of code involving zoo objects
Hello, everyone I have a long script that uses zoo objects. In this script I used simple moving averages and these I can very efficiently calculate with filter() functions. Now, I have to use special "exponential" moving averages, and the only way I could write the code was with a for-loop, which makes everything extremely slow. I don't know how to optimize the code, but I need to
2009 Jan 15
1
[LLVMdev] Ubuntu LLVM compiled a page of Simit-ARM with errors
Hi Everyone,I am new to LLVM and I am not sure if its capable of being a compilationstrategy to accelerate Dynamic Compiled Instruction set Simulation.I have tried changing the source code of: http://simit-arm.sourceforge.net/ tocompile pages of C++ code (translated from Arm Assembly) on the fly usingllvm-g++ and it gave the following errors:In file included
2012 Dec 12
1
EMA Package
Hi, I'm currently using EMA package to make clustering and heatmaps. The online doc concerning the package gives the following example code: data(marty) c<-clustering(marty, metric="pearson", method="ward") clustering.plot(c, title="Hierarchical Clustering\nPearson-Ward") which is working perfectly, However, when I'm changing the method to
2008 Sep 25
3
OHLC Plot with EMA in it
Hi there I have some timeseries data which I plot in a OHLC Plot. In the same plot I'd like to have the EMA of this timeseries. I tried to add the EMA point to OHLC with lines(), but this doesn't work. Has anyone an idea how to handle it? Regards, Michael Zak
2007 Feb 08
1
Re : Re: setting a number of values to NA over a data.frame.
Hi again, Awfully sorry John, I should have been sleeping and did not see your full post.... here is a way, unless I miss the point again : fake<-as.data.frame(cbind(seq(1,10,by=1),c(rep(1,4),rep(0,4),rep(2,2)))) # from my previous post # one moree column this time ! fake3<-cbind(fake,fake$V2) index<-c(2,3) fake3[,index][fake3[,index]==0]<-NA not nice, but seems to do the job.
2002 Nov 09
1
[LLVMdev] Your $200 are waiting you
2010 Nov 21
0
StarCraft II, low CPU/GPU usage
Hi all, I'm trying to properly understand why SC2 doesn't use CPU/GPU at 100%, sleeps all the time. I've managed to instrument SleepEx function, and I found out that the game spawns a lot of threads which are put to sleep by themselves 95% of the time if not more. This should definitely be on of the (if not main) reason why SC2 doesn't use the CPU/GPU at 100% and both are set to
2007 Feb 16
0
re : array searches
Hi, I am not sure to get the issue, but assuming your data are arranged as in your example with dates in column x$V1 and signals as x$V2 , I think that you could use "rle" in the following way : test<-rle(x$V2) testmat<-matrix(NA,length(test$values),2) testmat[,1]<-x[c(1,cumsum(test$length)[1:(length(test$values)-1)]+1),1] testmat[,2]<-test$values And you'll get your
2005 Sep 28
0
responses to my question on non-central t
The original question is attached at the end of this message ... In the world of R the excellent mvtnorm package answers my original question and many more that I didn't know I needed to ask. In the world of Splus ( version 6 , Windows XP ) this link :- http://www.biostat.wustl.edu/archives/html/s-news/2002-11/msg00079.html which was provided by Dimitris Rizopoulos, is useful.
2007 Apr 23
1
how to convert the lower triangle of a matrix to a symmetricmatrix
Sorry if this answer was already given, or if I miss the point, but did you have a look to "lowerTriangle" and "upperTriangle" functions in the "gdata" package ? # example # A<-matrix(rnorm(9),3,3) # B<-B<-matrix(NA,dim(A)[1],dim(A)[2]) # lowerTriangle(B)<-lowerTriangle(A) # upperTriangle(B)<-lowerTriangle(A) # diag(B)<-diag(A) Hope this helps,
2007 Jul 09
1
about scagnostics
Hi Hadley, thank you for providing this "scagnostics" primer.... I was trying to do some basic testing, and I see that I probably missed some points : first it's not clear for me if the argument of "scagnostics" should be raw data or "processed" data (results of calling "splom" or whatever...). If the first, I thought (from Wilkinson & al.) that if
2011 Jan 30
1
SMA and EMA in package TTR
Hi, Just wondering for the SMA and EMA in package TTR, is it possible to me to code it so that, say if I need to calculate SMA (x, n=100), when the sample size is less than 100, it will give me the SMA (x, k) where k is the sample size of the data? Right now it only gives me an invalid n error. Thanks! [[alternative HTML version deleted]]
2008 Mar 19
1
adimpro package : R does not seem to find my ImageMagick installation
Dear list, (sorry if I post to the wrong place...), Though having spent some time on it, I cannot find an answer by myself to the following behaviour of the read.image function (adimpro package) : I'm running R.2.6.2 on Windows XP. The home directory is C:\Program files\R\R-2.6.2 Version 0.4.4 of adimpro is loaded. ImageMagick 6.3.0 is installed, its directory is C:\Program