search for: swx

Displaying 11 results from an estimated 11 matches for "swx".

Did you mean: sw
2009 Sep 16
2
I want to get a reference to this time series object
I'm trying to get a reference to this object in C SWX.RET[1:6,c("SBI,"SPI","SII")] While i am able to access and use a plain SWX.RET object, I'm getting confused on how to create an object with the array subscripts like above. Here is what I tried to do. It doesn't work because "[" is obviously not an opera...
2009 Aug 25
2
Clarifications please.
...o here is a list of my doubts: 1) I am very confused on how the lang 1 2 3 4 ... set of functions work. I haven't found any relevant documentation explaining it clearly. I have a vague idea but still I cannot understand how I would evaluate an R expression like Covariance <- round(cov(100 * SWX.RET), digits = 4) using lang, install and R_tryEval. 2) What exactly does install do? 3) I wrote the following code: #include <Rinternals.h> #include <Rembedded.h> int main (int argc, char** argv) { SEXP e,val; int errorOccurred; Rf_initEmbeddedR(argc, argv); // l...
2012 Nov 28
3
error, R commends cannot show the expected output
Hi, I am working on R 2.15.2 on Win. 7. I am trying to run some simple commends. >class(SWX.RET) # SWX.RET is a data file that has been loaded. But, I cannot see the expected output. I have deselected "buffered output". Still it does not work. Any help will be appreciated. Thanks [[alternative HTML version deleted]]
2007 Jun 19
1
BlackBox testing
I am porting SWX (swxformat.org) to Ruby. It''s a data exchange format that assembles data structures into native SWF bytecode. Here''s my dilemma: The original SWX implementation (PHP) tests a lot of methods that wouldn''t be included in the public API (if PHP properly supported encapsulat...
2007 Nov 16
1
continusync issue
...<$fromInwt>; as suggested by Matt.) The problem is easily reproduced: # mkdir ~/foo # continusync ~/foo root@remotehost:~/foo & # vi ~/foo/bar.txt This generates an immediate exit from continusync with the following 3 messages: "rsync: link_stat "/root/foo/.bar.txt.swx" failed: No such file or directory (2) rsync error: some files could not be transferred (code 23) at main.c(977) [sender=2.6.9] [1]+ Broken pipe continusync ~/foo root@remotehost:~/foo" This is using slackware 11, on which vi is a link to vim version 7.0. By strace'i...
2009 Aug 25
1
R command line behaving funny
Hi I am unable to try out examples from the Rmetrics Ebook from the R command prompt. Below is an example of what happens: > Covariance<-cov(SWX.RET) Error in cov.timeSeries(SWX.RET) : no slot of name "Data" for this object of class "timeSeries" I have loaded Rmetrics and fPortfolio using the library function but still I get these errors. However, if I embed the R code into a C program like below it works. Why is th...
2011 Sep 01
0
qqplot for count data
...feedback would be welcome! Thanks, Jean-Christophe weighted.qqplot <- function (x, y, plot.it = TRUE, xlab = deparse(substitute(x)), ylab = deparse(substitute(y)), x.counts=rep(1L,length.out=length(x)), y.counts=rep(1L,length.out=length(y)), ...){ sx <- sort(x) sy <- sort(y) swx <- cumsum(x.counts[order(x)]) swy <- cumsum(y.counts[order(y)]) lenx <- length(sx) leny <- length(sy) sx <- approx(swx, sx, n=min(lenx,leny))$y sy <- approx(swy, sy, n=min(lenx,leny))$y if (plot.it) plot(sx, sy, xlab = xlab, ylab = ylab, ...) in...
2009 Sep 07
1
Rmetrics: Problem with "align"
...29 2009-08-31 5458.04 2009-08-28 5517.35 > xAligned <- align(x = x, by = "1d", method = "before", include.weekends = FALSE) Fehler in seq.default(u[1] + offset, u[length(u)], by = by) : wrong sign in 'by' argument ----- Besides, Example-Data (SWX) from the "fPortfolio"-package is aligned nicely by exactly the same command. Does anybody have an idea what the problem could be? I'm grateful for any help! Kind regards, Gero
2009 Sep 29
3
How do I access class slots from C?
...val(e,R_GlobalEnv, NULL)); // creating a portfolioData object PROTECT(e=lang4(install("c"),mkString("SBI"),mkString("SPI"),mkString("SII"))); PROTECT(tsAssets=R_tryEval(e,R_GlobalEnv,NULL)); PROTECT(e=lang4(install("["),install("SWX.RET"),R_MissingArg,tsAssets)); PROTECT(tsReturns=R_tryEval(e,R_GlobalEnv,NULL)); PROTECT(e=lang3(install("*"),ScalarInteger(100),tsReturns)); PROTECT(tsReturns=R_tryEval(e,R_GlobalEnv,NULL)); PROTECT(e=lang3(install("portfolioData"),tsReturns,portSpec));...
2009 Nov 11
1
Help with fPortfolio
...nf in foreign function call (arg 8) I'm using a timeSeries created from daily stock prices of selected stocks on the Bombay Sensex. My timeSeries is of the following format date stock1 stock2 stock3 I don't understand why I'm getting these errors. I tried the same functions using the SWX.RET and LPPDATA2005.RET time series and I got results. Regards Abhijit Bera [[alternative HTML version deleted]]
2011 Jun 21
4
Using umask
Grasping a full understanding of setting default Users, Groups and Masks has alluded me over the years, but now I find myself in a situation where manually "setting" the file/directory attributes is becoming a pain. I understand the fundamentals of the file attributes, though from time to time I have to review the "sticky bit"; what I do not understand is where/how the