Sure, R can do anything. The first trick, though, is to learn
how to write clear-enough questions to the mailing list
that you get helpful answers back. A worked example of
what you want would be very useful, since I have no idea
what the index is, or what field2 is, or what kind of graph
you want. OS would also be helpful, since the example
I'm giving only works as written on linux.
Still, one approach
allfiles <- system("ls *.csv", intern=TRUE) # linux only
allfield2 <- numeric(length(allfiles))
for(i in 1:length(allfiles)) {
allfield2 <- read.table(allfiles[i])$field2
# need read.table options, and correct way to get field2
}
hist(allfield2); sd(allfield2)
Sarah
On 5/12/07, onthetopo <sweih at zodiac.chem.ubc.ca>
wrote:>
> Hi guys,
> I've brand new to the R scene.
> I have hundreds of csv files that has field 1 ,YYYY/MM/DD as index
> How to generate a graph of distribution and calculate the standard
deviation
> of field2 for all of the files in a directory?
>
> I'm wondering if R could do this.
> Thanks a lot.
--
Sarah Goslee
http://www.stringpage.com