Learn R Programming

spatstat.linnet (version 3.4-0)

methods.lpp: Methods for Point Patterns on a Linear Network

Description

These are methods specifically for the class "lpp" of point patterns on linear networks.

Usage

# S3 method for lpp
as.ppp(X, ..., fatal=TRUE)

# S3 method for lpp as.psp(x, ..., fatal=TRUE)

# S3 method for lpp marks(x, ...) <- value

# S3 method for lpp nsegments(x)

# S3 method for lpp print(x, ...)

# S3 method for summary.lpp print(x, ...)

# S3 method for lpp summary(object, ...)

# S3 method for lpp unitname(x)

# S3 method for lpp unitname(x) <- value

# S3 method for lpp unmark(X)

Arguments

Value

See the documentation on the corresponding generic function.

Details

These are methods for the generic functions as.ppp, as.psp, marks<-, nsegments, print, summary, unitname, unitname<- and unmark for objects of the class "lpp".

For "marks<-.lpp" the replacement value should be either NULL, or a vector of length equal to the number of points in x, or a data frame with one row for each point in x.

For "unitname<-.lpp" the replacement value should be a valid name for the unit of length, as described in unitname.

See Also

lpp, intensity.lpp, methods.ppx

Examples

Run this code
  X <- runiflpp(10, simplenet)
  unitname(X) <- c("furlong", "furlongs")
  X
  summary(X)
  summary(chicago)
  nsegments(X)
  Y <- as.ppp(X)

Run the code above in your browser using DataLab