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='')))

 

to do my spatial analysis I need to get coordinate to this files. Normally
for one file I use

 

coordinates(vegetation_2) =~X+Y  

 

but I must processing several and several files and I wish to know the
methodology to create a loop formula.

 

Thanks

 

Ale

 


        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to