[R] handling multiple files; was: R advice
Uwe Ligges
ligges at statistik.uni-dortmund.de
Wed Sep 19 11:59:03 CEST 2007
Handling multiple files automatically is easy in R and has been answered
several times on this list: please pok up the archives as suggested in
the posting guide to this list which also asks you to use a sensible
subject line.
Additionally, there is a FAQ entry called "How can I save the result of
each iteration in a loop into a separate file?". I am sure you can adapt
it to read files as well.
Uwe Ligges
Daniel White wrote:
>
>
> Dear R-help
>
>
>
> As a novice to R I was seeking some advice with respect to using R to
> help solve a problem I have.
>
> I have a large number of infiles that need analysed. This can be done, I
> believe, using 2 separate R packages (popgen and ape) with the output
> from 'popgen' being used as input for 'ape'. What I would like to know
> is whether it is possible within R to write some script so that these
> files can be read from a folder outside the R space (say a folder within
> the C drive of my computer) and processed without having to re-initiate
> each individual infile?
>
> If this is possible I would then work on the problem of trying to link
> the output from the first package with the second.
>
>
>
> Many thanks for any advice given here.
>
>
>
> Dan White
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list