Re: [R] Loop function/comparison operator problem

2009-10-05 Thread David Winsemius
On Oct 5, 2009, at 7:56 PM, Duncan Murdoch wrote: On 05/10/2009 7:47 PM, jimdare wrote: Hi There, I have created the following function format<- function(){ repeat { form<-readline(paste("\nIn what format do you want to save these plots?\nChoose from: wmf, emf, png, jpg, jpeg, bmp, tif, tiff,

Re: [R] Loop function/comparison operator problem

2009-10-05 Thread Duncan Murdoch
On 05/10/2009 7:47 PM, jimdare wrote: Hi There, I have created the following function format<- function(){ repeat { form<-readline(paste("\nIn what format do you want to save these plots?\nChoose from: wmf, emf, png, jpg, jpeg, bmp, tif, tiff, ps, eps, or pdf.\nNote: eps is the suggested format

Re: [R] Loop function/comparison operator problem

2009-10-05 Thread jim holtman
use %in% instead of '==' On Mon, Oct 5, 2009 at 7:47 PM, jimdare wrote: > > Hi There, > > I have created the following function > > format<- function(){ > repeat { > form<-readline(paste("\nIn what format do you want to save these > plots?\nChoose from: wmf, emf, png, jpg, jpeg, bmp, tif, tiff, p

[R] Loop function/comparison operator problem

2009-10-05 Thread jimdare
Hi There, I have created the following function format<- function(){ repeat { form<-readline(paste("\nIn what format do you want to save these plots?\nChoose from: wmf, emf, png, jpg, jpeg, bmp, tif, tiff, ps, eps, or pdf.\nNote: eps is the suggested format for publication quality plots.\nPlot f