Skip to content
Back to formatted view

Raw Message

Message-ID: <4343FBC4.4000206@7d4.com>
Date: 2005-10-05T16:13:56Z
From: vincent@7d4.com
Subject: output a sequence of plots
In-Reply-To: <001201c5c9c5$1ed12350$62bbd38d@adsroot.itcs.umich.edu>

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
	}
}