[R] automatic file input

Ista Zahn izahn at psych.rochester.edu
Mon Aug 22 18:16:45 CEST 2011


Hi Vikas,
please do make an effort to search for the answer before posting. A
google search for "R read multiple files" will give you everything you
need.

Best,
Ista

On Mon, Aug 22, 2011 at 12:08 PM, Bansal, Vikas <vikas.bansal at kcl.ac.uk> wrote:
> Dear all,
>
> I have 100 files which are used as input.and I have to input the name of  my files again and again.the name of the files are 1.out, 2.out......100.out.
> I want to know if there is anything like perl so that i can use something like this-
>
>
> for($f = 1; $f <= 100; $f++) {
>  $file = $f.".out";
>
>
> I have tried this thing in R but it does not work.Can somebody please help me.
>
>
>
> Thanking you,
> Warm Regards
> Vikas Bansal
> Msc Bioinformatics
> Kings College London
> ______________________________________________
> 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.
>



-- 
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org



More information about the R-help mailing list