Re: [R] Using R to create pdf's from each file in a directory

2007-04-24 Thread gecko951
Did some reading and tried the following to exclude certain data columns but my syntax must be slightly off... workdir - '/tmp/data' for (x in dir(workdir,pattern='.csv$')){ +d - read.table(paste(workdir,'/',x,sep=''), sep=,, header=TRUE, colClasses=list(#, BlockType, ThreadName,

Re: [R] Using R to create pdf's from each file in a directory

2007-04-22 Thread Patrick Connolly
On Fri, 20-Apr-2007 at 11:10PM -0500, Jeffrey Horner wrote: | workdir - '/tmp/data' | for (x in dir(workdir,pattern='.csv$')){ |d - read.table(paste(workdir,'/',x,sep=''), sep=\t, header=TRUE) If they're CSV files, I don't think sep = \t will be correct. Try , best --

Re: [R] Using R to create pdf's from each file in a directory

2007-04-22 Thread gecko951
Jeff's code works beautifully with a couple changes to my dataset. I must change my data column MB/s to MBs. R seems to think that the s is another column if I try to use MB/s. Is there a way that I can make R allow special characters in the column names? The second step to getting this to

[R] Using R to create pdf's from each file in a directory

2007-04-20 Thread gecko951
The Platform I am using R on is RHEL3. I run a bash script that collects data into many CSV files and have been processing them one at a time on my local machine with an excel macro. I would like to use R to take data points from each of the CSV files and create line graphs in PDF format

Re: [R] Using R to create pdf's from each file in a directory

2007-04-20 Thread Duncan Murdoch
On 4/20/2007 9:40 PM, gecko951 wrote: The Platform I am using R on is RHEL3. I run a bash script that collects data into many CSV files and have been processing them one at a time on my local machine with an excel macro. I would like to use R to take data points from each of the CSV files

Re: [R] Using R to create pdf's from each file in a directory

2007-04-20 Thread Robert A LaBudde
At 09:40 PM 4/20/2007, gecko951 wrote: snip list - dir(/tmp/data) for(x in list){ d - read.table(x, sep=\t, header=TRUE) # read data pdf(/tmp/graph/x.pdf) # file for graph snip I'm a tyro at R, but it's obvious here that the line pdf(/tmp/graph/x.pdf) has the

Re: [R] Using R to create pdf's from each file in a directory

2007-04-20 Thread Robert A LaBudde
At 11:06 PM 4/20/2007, I wrote: At 09:40 PM 4/20/2007, gecko951 wrote: snip list - dir(/tmp/data) for(x in list){ d - read.table(x, sep=\t, header=TRUE) # read data pdf(/tmp/graph/x.pdf) # file for graph snip I'm a tyro at R, but it's obvious here that the line

Re: [R] Using R to create pdf's from each file in a directory

2007-04-20 Thread Jeffrey Horner
gecko951 wrote: The Platform I am using R on is RHEL3. I run a bash script that collects data into many CSV files and have been processing them one at a time on my local machine with an excel macro. I would like to use R to take data points from each of the CSV files and create line graphs