I'm trying to do something like
foo.list <- list(foo.1, foo.2, ...., foo.n)
where foo.n are n vectors
There must be a more elegant way to create these n arguments than
laboriously typing in "foo.1"... "foo.n", but so far my attempts to deduce
this have only produced foo.list with character string elements "foo.n"
rather than the objects foo.n -- i.e. I get
>foo.list
[[1]]:
"foo.1"
# etc. rather than
>foo.list
[[1]]:
[1] # lots of numbers go here
For the avoidance of doubt, I'm *not* interested in naming the elements of
foo.list -- i.e. I don't want
>foo.list
$foo.1:
[1] # lots of numbers go here
Julian Wells
OU Business School
The Open University
Walton Hall
Milton Keynes
MK7 6AA
United Kingdom
+44 1908 654658
|