unsort: Hybrid Index, internal utilities

Description Usage Arguments Details Value Author(s) See Also

View source: R/hi.R

Description

Non-documented internal utilities that might change

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
unsort(x, ix)
unsort.hi(x, index)
unsort.ahi(x, index, ixre = any(sapply(index, function(i) {
    if (is.null(i$ix)) {
        if (i$re) TRUE else FALSE
    } else {
        TRUE
    }
})), ix = lapply(index, function(i) {
    if (is.null(i$ix)) {
        if (i$re)
            orig <- rev(1:poslength(i))
        else orig <- 1:poslength(i)
    }
    else {
        orig <- i$ix
    }
    orig
}))
subscript2integer(x, maxindex = NULL, names = NULL)

Arguments

x

x

ix

ix

ixre

ixre

index

index

maxindex

maxindex

names

names

Details

These are utility functions for restoring original order after sorting. For now we 'mimic' the intuitive but wrong argument order of match() which should rather have the 'table' argument as its first argument, then one could properly method-dispatch on the type of table. xx We might change to proper 'unsort' generic, but then we have to change argument order.

Value

undefined

Author(s)

Jens Oehlschl<c3><a4>gel

See Also

hi, as.hi


kindlychung/ff documentation built on May 20, 2019, 9:58 a.m.