Skip to content

Combined variable names

1 message · Peter Dalgaard

#
Tobias Muhlhofer <t.muhlhofer at lse.ac.uk> writes:
...
...

Did you? Not to put too fine a point on it, but this particular
question spurred a lengthy thread over the weekend about how polite
one should be (or not) to people who obviously haven't read the FAQ...

This is Question 7.21, to be precise.

Short answer: use assign(paste(...)) if you must, but you're usually
better off constructing a list, for instance like this:
[[1]]
[1] 1 2 3 4 5

[[2]]
[1] 2 3 4 5

[[3]]
[1] 3 4 5

[[4]]
[1] 4 5

[[5]]
[1] 5