RE: [R] Index of a Loop Variable?

2004-04-07 Thread Jim Java
30 6 35 7 40 8 45 9 50 10 Jim Java writes-- Hi Everyone:-- Is it possible, within a for loop not explicitly using whole-number indexing, to find out the index value of the loop variable within the vector or list that's being looped through

[R] Index of a Loop Variable?

2004-04-06 Thread Jim Java
, i, within x: , index.in.x, sep=), fill=T) index.in.x - index.in.x + 1 } -- is it in general possible to get values of index.in.x without making it a count variable, as above? Thank you. -- Jim Java __ [EMAIL PROTECTED] mailing list https

Re: [R] C++: Appending Values onto an R-Vector.

2003-12-20 Thread Jim Java
[Jim Java] Hi folks. I posted this question a few days ago, but maybe it got lost because of the code I included with it. I'm having a problem using the SET_LENGTH() macro in an R extension I'm writing in C++. In a function within the extension I use SET_LENGTH() to resize R vectors so as to allow

[R] C++: Appending Values onto an R-Vector.

2003-12-11 Thread Jim Java
-help/2003-December/041871.html Here's my question, then: Is SET_LENGTH() the appropriate way to create space for tacking values onto the end of an R-vector in C++, or should I be trying to tack them on in some other way? Thanks again! -- Jim Java

Re: [R] C++: Appending Values onto an R-Vector.

2003-12-11 Thread Jim Java
need to study the R source yourself that's okay; I'm new here and don't wish to try to take more than I'm entitled to, nor do I wish to task the beneficence of the founders! Cheers, Jim Java __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch

[R] C++: SET_LENGTH() Over Many Iterations?

2003-12-09 Thread Jim Java
for genericness here. In C++, is there a better way than what I'm doing to concatenate values onto the end of an R vector of arbitrary length, especially over many iterations? Thanks for taking the time to read this. System specs: Pentium 4 2.5 GHz, 512 MB RAM, 40 GB hard drive, Win XP Yrs etc., Jim