Re: [R-sig-eco] automating ações

2015-09-15 Thread Philippi, Tom
Katia-- Your attached script didn't come through. as attachments are stripped by the mailing list. However, I can give you 2 generic answers. First, if your vector of species names is called SpList, and your data are in a big SpatialPointsDataFrame spdf for (SP in SpList) { spSP <-

Re: [R-sig-eco] automating ações

2015-09-15 Thread Kátia Emidio
Dear Erickson Here is the code: require(spatstat) require(foreign) require(rgeos) require(maptools) options(digits=4) dados.pol<-readShapePoly("area_de_estudo.shp")#lendo o contorno da área de estudo plot(dados.pol) dados.riq<-read.table("test_richness.txt", head=T, sep="\t")

[R-sig-eco] automating ações

2015-09-15 Thread Kátia Emidio
Dear all, I´m a beginner in using FOR in order to create a loop in R to automate ações in it. I have a script, attached, and I need to perform it for all species in the file (test_richness). The package I'm using is the SpatStat. The loop needs to be created before the "bw.smoothppp" function