Re: [R] truly object oriented programming in R Thank you all

2004-08-13 Thread Jason Liao
My deep appreciation to everyone who responded to my question. I am digesting your proposals (a little distracted by my governor's dramatic resignation in New Jersey). It seems that I am able to implement the algorithm in R (with the framework kindly provided by Thomas). I will post the code when i

Re: [R] truly object oriented programming in R

2004-08-13 Thread "Jens Oehlschlägel"
Dear Jason, Of course you can do almost eveything in R, but I have rarely seen someone prototyping something in Java to then implement it in R. KD-trees are for performance, and interpreted R is not really fast. So interfacing some foreign code might really be the better choice here. Opportunity

Re: [R] truly object oriented programming in R

2004-08-12 Thread Thomas Lumley
On Thu, 12 Aug 2004, Seth Falcon wrote: > The thing that's very different from, say, Java is that everything is an > object in R --- there isn't a notion of a *reference* to an object, > which is why in the above I had to say "head <- insertNode(...)" where > as in Java you could pass in a referen

Re: [R] truly object oriented programming in R

2004-08-12 Thread Thomas Lumley
On Thu, 12 Aug 2004, Jason Liao wrote: > Dear Thomas, > Thank you very much again for taking time to answer my questions. I am > sorry that my knoweldge of R is limited as I have only learned what is > necessary to do my work. In the KD tree, we have this recursive data > structure in that each kn

Re: [R] truly object oriented programming in R

2004-08-12 Thread Gabor Grothendieck
Jason Liao yahoo.com> writes: > In the KD tree, we have this >[...] > recursive data structure? If yes, can you give a sample program? > For an example, see the R loess.smooth function which uses k-d trees. Try ?loess.smooth for info and just type loess.smooth like that exactly to see s

Re: [R] truly object oriented programming in R

2004-08-12 Thread Seth Falcon
Hi Jason, On Thu, Aug 12, 2004 at 10:20:14AM -0700, Jason Liao wrote: > Does R's list support this recursive data structure? If yes, can you > give a sample program? Not sure if this is what you are looking for, but here's a quick linked list example using R's lists. # -8<---

Re: [R] truly object oriented programming in R

2004-08-12 Thread Jason Liao
Dear Thomas, Thank you very much again for taking time to answer my questions. I am sorry that my knoweldge of R is limited as I have only learned what is necessary to do my work. In the KD tree, we have this recursive data structure in that each knod has two children knods and this process continu

Re: [R] truly object oriented programming in R

2004-08-12 Thread Thomas Lumley
On Thu, 12 Aug 2004, Jason Liao wrote: > Good morning! I recently implemented a KD tree in JAVA for faster > kernel density estimation (part of the code follows). It went well. To > hook it with R, however, has proved more difficult. My question is: is > it possible to implement the algorithm in R

Re: [R] truly object oriented programming in R

2004-08-12 Thread Seth Falcon
For an overview of the OOP R package, see http://cran.r-project.org/doc/Rnews/Rnews_2001-3.pdf + seth __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide

Re: [R] truly object oriented programming in R

2004-08-12 Thread Gabor Grothendieck
Jason Liao yahoo.com> writes: : : Good morning! I recently implemented a KD tree in JAVA for faster : kernel density estimation (part of the code follows). It went well. To : hook it with R, however, has proved more difficult. My question is: is : it possible to implement the algorithm in R? My

[R] truly object oriented programming in R

2004-08-12 Thread Jason Liao
Good morning! I recently implemented a KD tree in JAVA for faster kernel density estimation (part of the code follows). It went well. To hook it with R, however, has proved more difficult. My question is: is it possible to implement the algorithm in R? My impression seems to indicate no as the code