[R] Associative array and How to store a set of objects ?

From: Ng Stanley <stanleyngkl_at_gmail.com>
Date: Mon, 14 Apr 2008 20:32:55 +0800


Hi,

Two questions:

  1. Assuming OB is an object, how do I store 20 of OB in a vector or list ?
  2. Does R has something similar associative array to Perl ? For example, %our_friends = ('best', 'Don', 'good', 'Robert', 'worst', 'Joe'); $our_friends{'cool'} = "Karen";

Thanks
Stanley

        [[alternative HTML version deleted]]



R-help_at_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. Received on Mon 14 Apr 2008 - 12:40:59 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 14 Apr 2008 - 15:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive