0

How I could build a 2 dimensional linked list in R?

Termininja
  • 6,620
  • 12
  • 48
  • 49
farzin
  • 91
  • 1
  • 1
  • 2
  • 5
    I think you may need to be more expasnsive about what operations you expect to be applied to such an object. R uspports lists of lists, but that may not be what yoo mean by a "2d linked list". – IRTFM Jul 10 '12 at 18:56

1 Answers1

1

For a linked list you need pointers, which R does not have (although in C++ a linked list can be implemented using no pointers). The basic R data structures are lists, data.frames, arrays etc, linked lists seem a bit to low level for R. If you provide more background as to what you want, we might be able to advise a suitable data structure in R.

Community
  • 1
  • 1
Paul Hiemstra
  • 59,984
  • 12
  • 142
  • 149