Re: [R] how to get rid of 2 for-loops and optimize runtime

2009-10-20 Thread Ian Willems
erent rows? Thank u for your help regards, Ian -Oorspronkelijk bericht- Van: William Dunlap [mailto:wdun...@tibco.com] Verzonden: maandag 19 oktober 2009 18:08 Aan: Ian Willems; r-help@r-project.org Onderwerp: RE: [R] how to get rid of 2 for-loops and optimize runtime > -Original

Re: [R] how to get rid of 2 for-loops and optimize runtime

2009-10-20 Thread Ian Willems
nk u for your time Greetings, Ian -Oorspronkelijk bericht- Van: joris meys [mailto:jorism...@gmail.com] Verzonden: maandag 19 oktober 2009 16:12 Aan: Ian Willems CC: r-help@r-project.org Onderwerp: Re: [R] how to get rid of 2 for-loops and optimize runtime Hi Ian, first of all, take

[R] how to get rid of 2 for-loops and optimize runtime

2009-10-19 Thread Ian Willems
Short: get rid of the loops I use and optimize runtime Dear all, I want to calculate for each row the amount of the month ago. I use a matrix with 2100 rows and 22 colums (which is still a very small matrix. nrows of other matrixes can easily be more then 10) Table before Year month quart