Description Usage Arguments Details Value Note Author(s) See Also Examples
Functions to query some index attributes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ## S3 method for class 'hi'
length(x)
maxindex(x, ...)
poslength(x, ...)
## S3 method for class 'hi'
maxindex(x, ...)
## S3 method for class 'ri'
maxindex(x, ...)
## S3 method for class 'bit'
maxindex(x, ...)
## S3 method for class 'bitwhich'
maxindex(x, ...)
## S3 method for class 'logical'
maxindex(x, ...)
## Default S3 method:
maxindex(x, ...)
## S3 method for class 'hi'
poslength(x, ...)
## S3 method for class 'ri'
poslength(x, ...)
## S3 method for class 'bit'
poslength(x, ...)
## S3 method for class 'bitwhich'
poslength(x, ...)
## S3 method for class 'logical'
poslength(x, ...)
## Default S3 method:
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 the generic poslength
returns the number of selected elements (which for negative indices is maxindex(x) - length(unique(x))
).
The generic maxindex
returns the highest possible index position.
an integer scalar
duplicated negative indices are removed
Jens Oehlschlägel
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.