data(lansing)
   # Multitype point pattern --- trees marked by species
   <testonly># Smaller dataset
      data(betacells)
      lansing <- betacells[seq(2, 135, by=3), ]</testonly>
  fit1 <- ppm(lansing, ~ marks, Poisson())
  is.marked(fit1)
  # TRUE
  fit2 <- ppm(lansing, ~ 1, Poisson())
  is.marked(fit2)
  # TRUE
  data(cells)
  # Unmarked point pattern
  fit3 <- ppm(cells, ~ 1, Poisson())
  is.marked(fit3)
  # FALSERun the code above in your browser using DataLab