Re: [R] Linked List in R

2011-02-12 Thread Martin Morgan
On 02/12/2011 11:08 AM, Shing Hing Man wrote: > Hi, > I am trying to create a linked list in R by defining a class Node which has > a instance variable Node. > > setClass("Node", representation(rate="numeric", nextNode="ANY")) > > The above works. But the following gives me a warning message.

Re: [R] Linked List in R

2011-02-12 Thread Jeff Newmiller
Why would you do this, when lists are fundamental types in R? --- Jeff Newmiller The . . Go Live... DCN: Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with

[R] Linked List in R

2011-02-12 Thread Shing Hing Man
Hi, I am trying to create a linked list in R by defining a class Node which has a instance variable Node. setClass("Node", representation(rate="numeric", nextNode="ANY")) The above works. But the following gives me a warning message. setClass("Node", representation(rate="numeric", nextNode="