[R-sig-Geo] alltypes function in spatstats
Rolf Turner
r.turner at auckland.ac.nz
Sun Oct 20 21:40:33 CEST 2013
As Roman Lustrik said in another reply to your message, please make your
example ***reproducible***.
That being said, I *was* able to reproduce your error with the pattern
"demopat"
(after assigning a value to "nsim" which you did not do in your example).
> check <- alltypes(demopat,fun="Lcross", nsim=99, envelope=T, global =
> T, verb=T, ginterval=c(0, 12.62), correction='border', rbord=5)
gives
> Error in envelopeEngine(X = X, fun = fun, simul = simrecipe, nsim =
> nsim, :
> object 'csr.theo' not found
just as in your example.
We'll look into it.
cheers,
Rolf Turner
P. S. This is not relevant to the error given, but it is ***bad
practice*** to use "T", when
"TRUE" is meant. The availability of the use of "T" is there just for
compatibility with Splus,
but such use should be avoided. The reason is that "T" can be
overwritten (whereas "TRUE"
cannot) --- with possibly disastrous consequences. E.g. "T <- FALSE" !!!
R. T.
On 10/21/13 07:07, "José M. Blanco Moreno" wrote:
> Dear useRs and guRus,
>
> I am trying to rerun an analysis that was previously working (under R2.15 if I recall properly) but when updating to 3.0.1 stopped working, with an error message that I cannot diagnose:
>
> all.nests.hom <- alltypes(ppp.nests, fun="Lcross", nsim=nsim, envelope=T, global = T, verb=T, ginterval=c(0, 12.62), correction='border', rbord=5)
>
> Error in envelopeEngine(X = X, fun = fun, simul = simrecipe, nsim = nsim, :
> object 'csr.theo' not found
>
> As far as the code was concerned, I have not changed it a comma; and diving into the envelopeEngine function I cannot tell what is wrong...
>
> Any hint? I have read the documentation (OK, admittedly quickly) but no reference to having to supply anywhere a "crs.theo" object.
>
> Cheers,
>
> José M. Blanco
>
>> sessionInfo()
> R version 3.0.1 (2013-05-16)
> Platform: x86_64-w64-mingw32/x64 (64-bit)
>
> locale:
> [1] LC_COLLATE=Spanish_Spain.1252 LC_CTYPE=Spanish_Spain.1252
> [3] LC_MONETARY=Spanish_Spain.1252 LC_NUMERIC=C
> [5] LC_TIME=Spanish_Spain.1252
>
> attached base packages:
> [1] grid stats graphics grDevices utils datasets
> [7] methods base
>
> other attached packages:
> [1] maptools_0.8-25 lattice_0.20-15 foreign_0.8-56
> [4] spatstat_1.31-3 deldir_0.0-22 mgcv_1.7-24
> [7] rgeos_0.2-19 sp_1.0-11
>
> loaded via a namespace (and not attached):
> [1] Matrix_1.0-12 nlme_3.1-110 tools_3.0.1
>
More information about the R-sig-Geo
mailing list