Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

perimeter

Perimeter Length of Window


Description

Computes the perimeter length of a window

Usage

perimeter(w)

Arguments

w

A window (object of class "owin") or data that can be converted to a window by as.owin.

Details

This function computes the perimeter (length of the boundary) of the window w. If w is a rectangle or a polygonal window, the perimeter is the sum of the lengths of the edges of w. If w is a mask, it is first converted to a polygonal window using as.polygonal, then staircase edges are removed using simplify.owin, and the perimeter of the resulting polygon is computed.

Value

A numeric value giving the perimeter length of the window.

Author(s)

and Rolf Turner r.turner@auckland.ac.nz

See Also

Examples

perimeter(square(3))
  perimeter(letterR)
  if(interactive()) print(perimeter(as.mask(letterR)))

spatstat.geom

Geometrical Functionality of the 'spatstat' Family

v2.1-0
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Tilman Davies [ctb], Ute Hahn [ctb], Abdollah Jalilian [ctb], Sebastian Meyer [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Waagepetersen [ctb]
Initial release
2021-04-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.