Re: [R] Using loop numbers in write.csv

2008-03-13 Thread Greg Snow
Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Economics Guy > Sent: Thursday, March 13, 2008 11:07 AM > To: [EMAIL PROTECTED] > Subject: [

Re: [R] Using loop numbers in write.csv

2008-03-13 Thread Economics Guy
g) L. Snow Ph.D. > Statistical Data Center > Intermountain Healthcare > [EMAIL PROTECTED] > (801) 408-8111 > > > > > > > -Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Economics Guy > > Sent: T

Re: [R] Using loop numbers in write.csv

2008-03-13 Thread Erik Iverson
See ?paste and ?assign, those will get what you want done. At least in the second case, you might consider using a list, however. You can then avoid the use of 'for' loops by using functions such as lapply. Best, Erik Iverson Economics Guy wrote: > This is a question I have wanted to ask for a

[R] Using loop numbers in write.csv

2008-03-13 Thread Economics Guy
This is a question I have wanted to ask for a while but hesitated because I was sut sure I would find the answer on my own, but as of yet...no dice. 1) Is there a way to use the loop number in naming things in R. Specifically I have a simulation that has two loops. I would like to be able to writ