Re: [R] get coordinates to multi file

2008-10-29 Thread Dieter Menne
Alessandro unifi.it> writes: > > but I must processing several and several files and I wish to know the > methodology to create a loop formula. Put your processing in a function, and call it like this datafiles = dir("../raw") for(file in datafiles) { try(ProcessFile(file),FALSE) } Dieter

[R] get coordinates to multi file

2008-10-28 Thread Alessandro
Hi All, I need to understand How I could to get coordinate to multi-files in a some code: I import X,Y,Z txt files (=vegetation_2.txt, vegetation_3.txt, vegetation_4.txt, etc etc.) with for(i in 2:4) assign(paste('vegetation',i,sep='_'),read.delim(paste('vegetation_',i,'.txt' ,sep='')))