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,
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
--
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
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
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
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
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
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