Learn R Programming

cayleyR (version 0.2.1)

create_hash_index: Create Hash Index from State Keys

Description

Builds a hash environment mapping state_key strings to row indices for fast lookup.

Usage

create_hash_index(states_df)

Value

Environment (hash table) mapping keys to integer vectors of row indices

Arguments

states_df

Data frame with a state_key column