Re: [R] Writing output of a looped process with pdfs

2015-07-28 Thread MacQueen, Don
Having done this: setwd("/Users/sisolarrosa/Documents/PhD/R_work/AF/IIC/split_fnp/") shps<- dir(getwd(), "*.shp") shps <- gsub('.{4}$', '', shps) You can create the list directly, instead of manually, like this (not tested, and see ?list): fnps <- vector('list', length(shps)) names(fnps) <-

Re: [R] Writing output of a looped process with pdfs

2015-07-25 Thread John Kane
0, a_73, a_79, a_8, a_80, a_81, a_82, a_83, a_84, a_85, a_86, a_87, a_88, a_89, a_9, a_90, a_91, a_94, a_95, a_96, a_98, a_99) John Kane Kingston ON Canada > -Original Message- > From: cecilia.larros...@imperial.ac.uk > Sent: Sat, 25 Jul 2015 09:54:00 +0000 > To: r-help@

[R] Writing output of a looped process with pdfs

2015-07-25 Thread Larrosa, Cecilia
Hi, I have created a list of spdfs, and I am looping a process for each of them. The process is using dDistance to calculate distances between features within each spdf. I want to write the output tables using the name of the spdf at each loop, but cannot find a way to do this. It seems a rathe