length.hi | R Documentation |
Functions to query some index attributes
## S3 method for class 'hi'
length(x)
## S3 method for class 'hi'
maxindex(x, ...)
## S3 method for class 'hi'
poslength(x, ...)
x |
an object of class |
... |
further arguments (not used) |
length.hi
returns the number of the subsript elements in the index (even if they are negative).
By contrast poslength
returns the number of selected elements (which for negative indices is maxindex(x) - length(unique(x))
).
maxindex
returns the highest possible index position.
an integer scalar
duplicated negative indices are removed
Jens Oehlschlägel
hi
, as.hi
, length.ff
, length
, poslength
, maxindex
length(as.hi(-1, maxindex=12))
poslength(as.hi(-1, maxindex=12))
maxindex(as.hi(-1, maxindex=12))
message("note that")
length(as.hi(c(-1, -1), maxindex=12))
length(as.hi(c(1,1), maxindex=12))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.