test.points: Random field of points

Description Usage Arguments Value Examples

View source: R/coalesce.R

Description

Test and explore the functionality of coalesce with a random field of weighted points generated by this function.

Usage

1
test.points(n = 100L, TwoD = FALSE)

Arguments

n

integer [1]; number of points

TwoD

logical [1]; should the points be distributed in only two dimensions?

Value

data.table with columns:
..$x,y,z (num): position (z only if ThreeD)
..$m (num): mass (or weight) of points

Examples

1
2
3
4
test.points(5L)
test.points(150L, FALSE)
test.points(150L)
## Not run: test.points(1e5)

CJBarry/coalesce documentation built on May 6, 2019, 9:25 a.m.