Re: [R] Removing leading and trailing spaces (string manipulation)

2004-03-31 Thread Sean Davis
Danny, Paste uses sep= between arguments as a default. Just include sep= in the paste call. file=paste(c:\\temp\\cluster,format(i),.jpeg,sep=) Sean On 3/31/04 9:44 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, I'm running the following code to generate 40 different jpegs based

RE: [R] Removing leading and trailing spaces (string manipulation)

2004-03-31 Thread Simon Fear
I believe all you need to do here is use plain i instead of format(i) in the jpeg call. Someone is bound to come up with a better generic answer but this should get you up and running for now. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 31 March 2004

Re: [R] Removing leading and trailing spaces (string manipulation)

2004-03-31 Thread Marc Schwartz
On Wed, 2004-03-31 at 08:44, [EMAIL PROTECTED] wrote: Hi all, I'm running the following code to generate 40 different jpegs based on the resulting data. I'd like the file names to be 'Cluster1.jpeg', however the code write filenames like 'Cluster 1 .jpeg'. How can I get rid of the

Re: [R] Removing leading and trailing spaces (string manipulation)

2004-03-31 Thread dsheuman
Thanks to Marc, J.R. and Sean for your help. I didn't realize that the paste command was where I should be looking. Danny __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!