search for: ysampl

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

Did you mean: sampl
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)
...int KernelFileSave; /* Determined, if Systemmatrix saved or not.*/ char KernelFileName[200]; /* A-Matrix name */ char StartFileName[200]; /* Startguess (optional) */ int XSamples; /* No of samples on 1. axis of recon image */ int YSamples; /* No of samples on 2. axis of recon image */ float DeltaX; /* Sampling distance 1. axis of recon image */ float DeltaY; /* Sampling distance 2. axis of recon image */ float Xmin; /* 1. sample position 1.axis of recon image */ float Ymin;...
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 P...