locSquad: Simulate Squared Locations

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/simData.R

Description

This function simulates a given number of locations equally distributed on a square.

Usage

1
locSquad(a, np)

Arguments

a

half length of the edge

np

the number of locations on each edge

Details

The center of the square is (0, 0).

Value

A (4\times np-4) \times 2 matrix indicates the x-y coordinates of the locations.

Author(s)

Liang Jing ljing918@gmail.com

See Also

locCircle, locGrid, simData, plotData.

Examples

1
2
3
4
## Not run: 
  plot(locSquad(0.5, 4))

## End(Not run)

geoCount documentation built on May 2, 2019, 5:46 p.m.

Related to locSquad in geoCount...