Re: [R] output a sequence of plots

From: <vincent_at_7d4.com>
Date: Thu 06 Oct 2005 - 02:13:56 EST

Paul E. Green a écrit :

> ... Any solutions that would
> save me from repeating this code 120 times? Can I
> pass arguments inside quotes? Can I write a function
> to do this?

as a toy example, with some of the usable functions : (see ?dir)

fct00 = function()
{
rep0 = "data";
fichier = dir(rep0, pattern="*.emf");
nbfichiers = length(fichier);

for (i in 1:nbfichiers)

	{
#	do the job
	}

}

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 Oct 06 02:17:33 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:21:12 EST