Dear R People:
I have about 6000 files to be read in that I'd like to go to one
matrix. There are two columns, 1 line in each file.
Is there a way to bring them in to produce one matrix or data frame, please?
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathema
You could try:
do.call("rbind", lapply(list.files("path/to/files", full = TRUE), read.csv))
And add more arguments to lapply if the files are not csv, have no header, etc.
--sundar
On Tue, Jun 9, 2009 at 11:18 AM, Erin Hodgess wrote:
> Dear R People:
>
> I have about 6000 files to be read in th
On Thu, Mar 27, 2008 at 4:40 PM, Zu Thur Yew <[EMAIL PROTECTED]> wrote:
>
> for (r in 1:100) {
> d1 <-read.table(r.anl)
read.table(paste(r,".anl", sep=""))
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do rea
Hi,
I'm new to R and want to use it to analyse a number of data files (e.g.
100).
I want to read in multiple files in a loop in a specific order (e.g. 1 to
100) and was hoping to do something like:
for (r in 1:100) {
d1 <-read.table(r.anl)
for (r2 in 1:100) {
d2 <-read.table(r2.anl)
cc
4 matches
Mail list logo