[R] how to get list of files within a particular local file folder
peter dalgaard
pdalgd at gmail.com
Wed Jul 4 15:56:44 CEST 2012
On Jul 4, 2012, at 15:24 , Ajay Ohri 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)
Something like
all <- lapply(list.files(), read.table)
?
-pd
>
> 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.
--
Peter Dalgaard, Professor
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
More information about the R-help
mailing list