From: Austin, Matt <maustin_at_amgen.com>

Date: Thu 26 Jan 2006 - 16:54:50 EST

}

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

http://www.R-project.org/posting-guide.html

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jan 26 17:02:19 2006

Date: Thu 26 Jan 2006 - 16:54:50 EST

Something like this.

See ?formatC, ?paste

for (i in 1:100)

*{
*

system(paste("C:\\Progra~1\\DOSPROGRAM\\RUN.exe input",

formatC(i, digits=2, flag='0'), '.dat', sep=''))

}

--Matt

Statistician

Amgen, Inc

-----Original Message-----

From: r-help-bounces@stat.math.ethz.ch

[mailto:r-help-bounces@stat.math.ethz.ch]On Behalf Of Taka Matzmoto
Sent: Wednesday, January 25, 2006 9:31 PM
To: r-help@stat.math.ethz.ch

Subject: [R] question about "system" command

system('"C:\\Program Files\\DOSPROGRAM\\RUN.exe" input001.dat') }

I like to change the input data file name as for loop runs. How can I do that ?

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

http://www.R-project.org/posting-guide.html

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jan 26 17:02:19 2006

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:42:11 EST
*