[R] how to get list of files within a particular local file folder

Michael Weylandt michael.weylandt at gmail.com
Wed Jul 4 15:51:20 CEST 2012


Either dir() or list.files()

Michael

On Jul 4, 2012, at 8:24 AM, Ajay Ohri <ohri2007 at gmail.com> wrote:

> Dear List,
> 
> Say I can use getwd() and setwd() to change my working directory. How can I
> read in all the files within that directory using command line (like a ls()
> but for the path specified)
> 
> Regards
> 
> Ajay
> 
> Websites-
> Technology
> http://decisionstats.com
> 
>    [[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