Description Usage Arguments Value Author(s) Examples
Make indexes to order grid by angles in given dimensions. Reorder indexes for constructs and elements are calculated using the coordinates of the given dimensions.
1 | angleOrderIndexes2d(x, dim=c(1, 2), clockwise=TRUE)
|
x |
|
dim |
Dimensions used to calculate angles for reordering grid. |
clockwise |
Logical. Positive angles are clockwise with x axis as basis. |
A list containing the indexes to reorder the grid. The first list element for the constructs, the second for the elements indexes.
Mark Heckmann
1 2 3 4 5 6 7 8 | ## Not run:
x <- randomGrid(15,30) # make random grid
i <- angleOrderIndexes2d(x) # make indexes for ordering
x <- x[i[[1]], i[[2]]] # reorder constructs and elements
x # print grid
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.