position {hilbert} | R Documentation |
Get index positions from a Hilbert Curve
Description
Get index positions from a Hilbert Curve
Usage
position(h, ..., n = 10L)
## S3 method for class 'data.frame'
position(h, ..., n, idx = 1, attach = TRUE)
## S3 method for class 'matrix'
position(h, ..., n, idx = 1, attach = TRUE)
## S3 method for class 'numeric'
position(h, ..., n)
## S3 method for class 'integer'
position(h, ..., n)
position64(h, ..., n = 10L)
## S3 method for class 'data.frame'
position64(h, ..., n, idx = 1, attach = TRUE)
## S3 method for class 'matrix'
position64(h, ..., n, idx = 1, attach = TRUE)
## S3 method for class 'double'
position64(h, ..., n)
## S3 method for class 'integer'
position64(h, ..., n)
## S3 method for class 'numeric'
position64(h, ..., n)
## S3 method for class 'integer64'
position64(h, ..., n)
## S3 method for class 'character'
position64(h, ..., n)
## S3 method for class 'bitstring'
position64(h, ..., n)
Arguments
h |
One of: Integer vector, |
... |
Unused. |
n |
Exponent to the dimensions of the underlying grid. The Hilbert
Curve indices are based on a |
idx |
Column name or index containing the Hilbert Curve indices. |
attach |
If |
Value
A data.frame
containing the positions as integer
columns x
and y
, or the original object
(data.frame
or matrix
) with the columns attached.
When n
is greater than 15, the positions are of
type bit64::integer64
.