Re: [R] prompts and running means

2010-02-10 Thread RagingJim
Thanks Jim, however if I change "png(fileName)" to "png("picture.png")" then this: "require(tcltk) fileName<-tclvalue(tkgetSaveFile(filetypes="{{PNG Files} {.png}} ")) " becomes obsolete. Assuming of course that is what you were referring to. Otherwise I completely missed your point. Cheers.

Re: [R] prompts and running means

2010-02-10 Thread Jim Burke
Perhaps the One R Tip a Day might be helpful. The first part of this example saves a png file. http://onertipaday.blogspot.com/2009/01/statistical-visualizations-part-2.html Good luck, Jim RagingJim wrote: Thanks mate, will get the zoo package ASAP. I have been working on the file open/save pa

Re: [R] prompts and running means

2010-02-10 Thread RagingJim
Thanks mate, will get the zoo package ASAP. I have been working on the file open/save part, and it works as planned except for one bit. When I save it, it does not save as the relevant file type. This is again my code: require(tcltk) fileName<-tclvalue(tkgetSaveFile(filetypes="{{PNG Files} {.png

Re: [R] prompts and running means

2010-02-09 Thread Dieter Menne
RagingJim wrote: > > > ... it will ask the user for the name of the csv file it wants to open, > and then prompt for what the user wants to save it as. > http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/FileOpenSave.html RagingJim wrote: > > > Secondly, I need to create a running mean

[R] prompts and running means

2010-02-09 Thread RagingJim
G'day, I am new user to R, and have been thrown in the deep end with a something my company want me to write. my code is as follows: kenttemp=read.csv("mnowak.11.1.csv") rows=nrow(kenttemp)-5 kent=kenttemp[1:rows,] #have to remove the last 5 lines of the graph as they interfere with