[R] Spatstat - Kest, envelope problem
rolf.turner at xtra.co.nz
Thu Feb 7 22:18:57 CET 2013
You can solve this problem by actually *reading* the error
message. Evidently the object "point" is a marked point pattern
whose marks are in the form of a data frame.
(1) Do not create "point" as a marked point pattern --- i.e.
don't add a "marks" component when you create it, or
(2) Unmark it before you use it, e.g.:
ump <- unmark(point)
E <- envelope(ump)
Note that specifying "fun=Kest" and "nsim=99" is unnecessary and
redundant. Those are the (current) default values of these arguments.
Note also that "point" is probably not a good name for a point pattern
object; too easily confused with the name of the function "points()".
On 02/08/2013 02:57 AM, Pavel_K wrote:
> I am writing cause I have a problem when try to create confidence envelopes
> in spatstat.
> I have a point data representing firms in my study area.
> When I try to create confidence envelopes the error message turns up:
> [> p <- envelope(point, fun=Kest, nsim=99)
> Error in marks.ppp(Y, dfok = FALSE) :
> Sorry, not implemented when the marks are a data frame]
> Could you write me how can I solve this problem please?
More information about the R-help