index | R Documentation |
Index positions to a Hilbert Curve
index(x, ..., n = 10L) ## S3 method for class 'data.frame' index(x, ..., n, coords = c(1, 2), attach = TRUE) ## S3 method for class 'matrix' index(x, ..., n, coords = c(1, 2), attach = TRUE) ## S3 method for class 'double' index(x, y, ..., n) ## S3 method for class 'numeric' index(x, y, ..., n) ## S3 method for class 'integer' index(x, y, ..., n) index64(x, ..., n = 10L) ## S3 method for class 'data.frame' index64(x, ..., n, coords = c(1, 2), attach = TRUE) ## S3 method for class 'matrix' index64(x, ..., n, coords = c(1, 2), attach = TRUE) ## S3 method for class 'double' index64(x, y, ..., n) ## S3 method for class 'integer' index64(x, y, ..., n) ## S3 method for class 'numeric' index64(x, y, ..., n) ## S3 method for class 'integer64' index64(x, y, ..., n) ## S3 method for class 'character' index64(x, y, ..., n) ## S3 method for class 'bitstring' index64(x, y, ..., n)
x |
One of: Numeric vector, |
... |
Unused. |
n |
Exponent to the dimensions of the underlying grid. The Hilbert
Curve indices are based on a |
coords |
Column names or indices of a |
attach |
If |
y |
Numeric vector. Corresponds to the columns of a position. |
An integer
vector of Hilbert indices, or when attach
is TRUE
,
the original object (data.frame
or matrix
) with a new integer
column (h
for data.frame
) containing the Hilbert indices. When
n
is greater than 15, the vector is of type bit64::integer64
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.