search for: ysampled

Displaying 3 results from an estimated 3 matches for "ysampled".

Did you mean: sampled
2012 Feb 14
1
method using several (and different) arguments in turn
Dear R-developers community, I have the following generic: setGeneric( name="newsample", def=function(x,y,z,a,b,c,...){standardGeneric("newsample")} And I can build several methods for this generic. One useful thing is to use "newsample" with only one of the 6 arguments listed. At the moment this is what I do: setMethod(
2006 Jun 28
2
read file with readBin (the file was saved with a C-routine)
Hello! I have problems with using of "readBin" to read files, which was written in C with "fwrite". In the C-File there is the following Code: fwrite(MyitINI,sizeof(itINItype),1,outfile); where MyitINI is a structure of the following form typedef struct{ int KernelFileSave; /* Determined, if Systemmatrix saved or not.*/ char KernelFileName[200]; /* A-Matrix name
2013 Mar 30
0
Scoping issue with irf() from {vars}
...ags, type = "const") print(var.2c) } testfun(lags=3) ## Everything OK. Now this: testfun2 <- function(lags){ data(Canada) var.2c <- VAR(Canada, p = lags, type = "const") itest <- irf(var.2c) plot(itest) } testfun2(lags=3) ## I get an error message: Error in VAR(y = ysampled, p = lags, type = "const") (from #5) : ## object 'lags' not found. ------------------------- If you first assign lags and then define testfun2, it works. Seems to me like a scoping problem. Any ideas? Thanks! Toby -- Dr. Tobias M?hlhofer Assistant Pro...