Dear Ben,
Is this the kind of thing you had in mind?
lst - list()
element - a
lst[[element]] - 1:5
element - b
lst[[element]] - letters[1:5]
lst
$a
[1] 1 2 3 4 5
$b
[1] a b c d e
I hope this helps,
John
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Ben Shapiro wrote:
HI Folks,
I'm trying to create a list with named elements. Only, I don't know the names of the elements a priori (they come from the data being calculated). Currently, my approach is to create an environment, then assign things to the environement, then as.list the environment
Ben Shapiro bshapiro-lists-R at getdown.org writes:
:
: HI Folks,
:
: I'm trying to create a list with named elements. Only, I don't know the
names of the elements a priori (they
: come from the data being calculated). Currently, my approach is to create an
environment, then assign
: things