create.lookup {componentSkeleton}R Documentation

Create a hashed lookup from strings to indices

Description

Given a character vector, create a hashed environment from characters to indices. When x is a string, lookup[[x]] gives the index (position) of x in the original vector in roughly constant time.

Usage

create.lookup(values) 

Arguments

values

Character vector.

Author(s)

Kristian Ovaska (kristian.ovaska@helsinki.fi)


[Package componentSkeleton version 2.0.1 Index]