removeIndex | R Documentation |
Removes an index from an Andromeda table
removeIndex(tbl, columnNames = NULL, indexName = NULL)
tbl |
An |
columnNames |
A vector of column names (character) on which the index was created. If not
provided, then the |
indexName |
The name of the index. If not provided, the |
Remove an index created using the createIndex()
function. Either the index name or the column
names on which the index was created must be provided.
Invisibly returns the input table.
createIndex()
, listIndices()
andr <- andromeda(cars = cars)
createIndex(andr$cars, "speed")
# Will be faster now that speed is indexed:
andr$cars %>%
filter(speed == 10) %>%
collect()
removeIndex(andr$cars, "speed")
close(andr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.