exchange_xy_for_marks: Exchange 'x' and 'y' coords for others stored as marks

View source: R/util.R

exchange_xy_for_marksR Documentation

Exchange x and y coords for others stored as marks

Description

Utility function that allows the x and/or y coords of a PPP object to be swapped with another set of coords stored as marks. The previous x and y coords are stored in the marks under names orig_x and orig_y respectively.

Usage

exchange_xy_for_marks(points, x_name = "x", y_name = "y")

Arguments

points

ppp object containing marks

x_name

name of the marks column to be used as the new x coords

y_name

name of the marks column to be used as the new y coords

Value

ppp where x and y coords have been exchanged for those those specified as marks.


keithschulze/supr documentation built on Nov. 26, 2022, 7:09 a.m.