On Fri, 29-Jan-2010 at 03:16PM -0800, Cat Morning wrote:
|> Hi all,
|> I want to write a function to create multiple lists (over 100
|> lists). For example:
Could it be that you want to create multiple vectors? That's what it
looks like to me. If your question is clear, the answer probably wil
On Jan 29, 2010, at 6:35 PM, David Winsemius wrote:
On Jan 29, 2010, at 6:16 PM, Cat Morning wrote:
Hi all,
I want to write a function to create multiple lists (over 100
lists). For example:
for(i in 1:5)
pi = c(1:5)
Try:
p <-list()
for(i in 1:5)
p[[i]] = 1:5
You can reference the thi
On Jan 29, 2010, at 6:16 PM, Cat Morning wrote:
Hi all,
I want to write a function to create multiple lists (over 100
lists). For example:
for(i in 1:5)
pi = c(1:5)
Try:
p <-list()
for(i in 1:5)
p[[i]] = 1:5
You can reference the third elements of the first vector as:
p[[1]][3]
but
3 matches
Mail list logo