Re: [R] Assigning Data a name from within another variable?

2009-06-16 Thread Kenny Larsen
Thnaks to both of you, with a combined effort of the Wiki and your code I have now managed to get teh result I was after. When I have a better understanding of what the code is doing I shall make an effort to contribut to the Wiki! Cheers, Kenny Kenny Larsen wrote: Hi All, I have

[R] Assigning Data a name from within another variable?

2009-06-15 Thread Kenny Larsen
with labels[1], but this simply writes the data in one long column to the first place of labels(which makes sense). How do I extract what is in labels[1] and set it as the table name? As always any help is greatly appreciated. Kenny Larsen -- View this message in context: http://www.nabble.com

[R] Squaring one column of data

2009-06-12 Thread Kenny Larsen
Hi, A fairly basic problem I think, here although searching the inetrnet doesn't seem to reveal a solution. I have a dataset with two columns of real numbers. It is read in via read.table. I simply need to square the data in the second column and then plot it. I have tried extracting the second

Re: [R] Squaring one column of data

2009-06-12 Thread Kenny Larsen
Have sorted it, it was simple, for anyone else who needs it: z[2] - z[2]*z[2] squares the second column of a data table and writes it back to the second column Kenny Kenny Larsen wrote: Hi, A fairly basic problem I think, here although searching the inetrnet doesn't seem to reveal

[R] Issues getting R to write image files

2009-06-11 Thread Kenny Larsen
Hi All, Have spent the last couple of days learning R and shell scripting to do batch plotting jobs. I have had success getting R to complete a filled contour plot and output to a file (.jpg or .tiff etc). However, when I try to do the same thing with the simple plot command the script seems to

Re: [R] Issues getting R to write image files

2009-06-11 Thread Kenny Larsen
tried to close the image file at the end? Do: dev.off() Hope it helps mario Kenny Larsen wrote: Hi All, Have spent the last couple of days learning R and shell scripting to do batch plotting jobs. I have had success getting R to complete a filled contour plot

Re: [R] Issues getting R to write image files

2009-06-11 Thread Kenny Larsen
Hi all, Silly missing ) at the end of the plot command! is working now, just need to remove the V1 and V2 that appear under my axis labels! Cheers for all your help guys, much appreciated. Kenny Ted.Harding-2 wrote: On 11-Jun-09 09:24:42, Tobias Verbeke wrote: Hi Kenny, Have spent