listof.R
#
# listof.R
#
# Methods for class `listof'
#
# plot.listof is defined in plot.splitppp.R
#
"[<-.listof" <- function(x, i, value) {
# invoke list method
class(x) <- "list"
x[i] <- value
# then make it a 'listof' object too
class(x) <- c("listof", class(x))
x
}
summary.listof <- function(object, ...) {
x <- lapply(object, summary, ...)
class(x) <- "summary.listof"
x
}
print.summary.listof <- function(x, ...) {
class(x) <- "listof"
print(x)
invisible(NULL)
}