DFI.indexes {bsearchtools} | R Documentation |
Get the indexes names of a DFI object
Description
Method to get the indexes names of a DFI object
Usage
DFI.indexes(DFIobj)
Arguments
DFIobj |
A DFI object |
Value
A character vector containing the name of the indexed columns of the DFI object
Examples
### create a simple DFIobj
DF <- data.frame(Foo=c(3,5,7,1,5,8,7,10),
Bar=c("A","B","B","C","B","B","C","A"),
Baz=c(TRUE,FALSE),
stringsAsFactors=FALSE)
DFIobj <- DFI(DF, c("Foo","Bar")) # create a DFI from DF with indexes on "Foo" and "Bar" columns
### get the indexes names (returns c("Foo","Bar"))
DFI.indexes(DFIobj)
[Package bsearchtools version 0.0.61 Index]