R/generic.spatstat.R

Defines functions unique.wmppp superimpose.wmppp split.wmppp sharpen.wmppp

Documented in sharpen.wmppp split.wmppp superimpose.wmppp unique.wmppp

sharpen.wmppp <- function(X, ...)
{
  X <- sharpen.ppp(X, ...)
  class(X) <- c("wmppp", "ppp")
  return(X)
}

split.wmppp <- function(...)
{
  Xlist <- split.ppp(...)
  as.wmppplist <- function(X) {
    class(X) <- c("wmppp", "ppp")
    return(X)
  }
  Xlist <- lapply(Xlist, as.wmppplist)
  return(Xlist)
}

superimpose.wmppp <- function(...)
{
  X <- superimpose.ppp(...)
  class(X) <- c("wmppp", "ppp")
  return(X)
}

unique.wmppp <- function(x, ...)
{
  X <- unique.ppp(x, ...)
  class(X) <- c("wmppp", "ppp")
  return(X)
}

"[.wmppp" <- function(i, j, drop=FALSE, ..., clip=FALSE)
{
  X <- "[.ppp"(i, j, drop=drop, ..., clip=clip)
  class(X) <- c("wmppp", "ppp")
  return(X)
}

Try the dbmss package in your browser

Any scripts or data that you put into this service are public.

dbmss documentation built on Sept. 11, 2024, 9:19 p.m.