search for: tobias_verbek

Displaying 4 results from an estimated 4 matches for "tobias_verbek".

Did you mean: tobias_verbeke
2003 Jul 14
1
for loop problem
Dear list, Here's a function that works fine when I assign one value to i. qx, ax and gr are vectors. ax.to.nax <- function(qx, ax, gr=c(0,1,5,10)){ px <- 1 - qx last.n <- gr[length(gr)] - gr[length(gr) - 1] all.bounds <- c(gr, gr[length(gr)] + last.n) n <- diff(all.bounds) # i <- 1 # this i should loop through the values of # gr: i=0, i=1, i=5 and i=10. # testprod
2003 Apr 30
3
How to put 2 or more graphics in the same page ?
Hi, I have a naive question... I have produced about 60 graphics and want to put them in one postscipt file , possibly 4 graphics on each page. I can put all of them in the same file (that's ok), but I can't find the way to put 2 or more (precisely 4, in my case) graphics on the same page (each graphics is about 6 inches (width) X 4 inches (height)). Any help would be very much
2003 Jun 05
6
dynamics of functions
Dear list, I would like to study the dynamics of functions using R (instead of mathematica e.g.), i.e. the behavior of points under iteration of a function. So I tried (in vain) writing a function myfunction <- function(f,n,x){...} in order to compute f^{n}(x), f^{n}(x) being the function f composed with itself n-1 times. n is a natural number, and the argument x is the abscissa of the point I
2003 Jul 09
3
`acting' on variables
Dear list, How can one "from within a function" act on these variables ("outside" a function) that were given as arguments. If I have e.g. this beginning of a function: foo <- function(tiro){ app.tiro <- 3 * tiro [...] } How can I from within the curly brackets e.g. concatenate the app.tiro to the particular variable I passed as the argument `tiro' ? What is