Mike Lawrence <mike <at> thatmike.com> writes: > > I suspect your example code is too long & complicated for anyone to bother > attempting to help you. [...]
Because of that I marked the line, where the error occured, I thought it was easy to find out for experienced users. But I just found the problem. It seems the behaviour is correct, but very unusual. R has some peculiarities that aren't intuitive, if you are coming from other languages. It's power is also it's unusual-ness. The problem was, that sample_times was not the number of samples, but an array containing 1:(number-1). And paste did not just add it, it makes something like an expand.grid-like way of blowing up the data. It seems that does also contained the arguments, that followed the sample_times-array, not only those before, but that I have to explore in more detail. Yes, R is so powerful, but some behaviour is really strange because of that. But I can admit, that it was my limited knowldege on paste() that brought me to the conclusion that there might be a bug. It seems with R one has to rethink a lot of assumed behaviour one knows from other languages. So, reading the manual more then one time might be necessary... ;-) BTW: Is there a way to make pdf's out of the help-pages for a function? I know there is a big pdf-file as reference. But the begin of the description of the functions do not fit to one page. I would like to have each function beginning on a seperate page. How to achieve this? Do you know this? (Maybe I should start a new thread with that topic...?!) Ciao, Oliver ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.