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@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....@cbs.dk Priv: pda...@gmail.com ______________________________________________ R-help@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.