rx2y2: Random point conditioned on distance Return x and y...

View source: R/create.outer.R

rx2y2R Documentation

Random point conditioned on distance Return x and y coordinates of random points conditional on a distance or range of distances from input point.

Description

Random point conditioned on distance

Return x and y coordinates of random points conditional on a distance or range of distances from input point.

Usage

rx2y2(p1, d, n = 1)

Arguments

p1

Numerical vector with decimal longitude and latitude of first point.

d

Number specifying the distance (in decimal degrees) between the new point and the point with coordinates 'x1y1', or, a numerical vector, in which case the distance from x1y1 will be randomly drawn from values in the range of d.

n

Number of points to return. Default 1.

Value

Numerical vector with longitude and latitude of new point.


JeffWeinell/misc.wrappers documentation built on Sept. 20, 2023, 12:42 p.m.